An open API service indexing awesome lists of open source software.

https://github.com/dfirebaugh/tycho8


https://github.com/dfirebaugh/tycho8

Last synced: 8 months ago
JSON representation

Awesome Lists containing this project

README

          

# tycho8
[demo](https://dfirebaugh.github.io/tycho8/)

## deps

```bash
apt-get install libsdl2-dev lua5.3 liblua5.3-dev
```

```
+----------------------------------------------+
| UP |
| +---+ |
| | W | |
| LEFT +---+ RIGHT PRIMARY SECONDARY |
| +---+ +---+ +---+ +---+ |
| | A | | D | | . | | / | |
| +---+ +---+ +---+ +---+ |
| +---+ |
| | S | |
| +---+ |
| DOWN |
| START SELECT |
| +---+ +---+ |
| |ENT| |BS | |
| +---+ +---+ |
+----------------------------------------------+
```

## build
just run `make` to build
```bash
make
```
this outputs a binary `./dist/tycho`

To run a lua file

```bash
tycho ./examples/platformer.lua
```

## wasm build
> note: to compile lua to run in web assembly, we need to compile from source. for this, lua is included as a git submodule

```
git submodule update --init --recursive
```

```bash
bash ./scripts/wasm_build.sh
```

```bash
go run ./tools/wasm_serve/main.go --static-dir ./dist/web
```