https://github.com/dfirebaugh/tycho8
https://github.com/dfirebaugh/tycho8
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dfirebaugh/tycho8
- Owner: dfirebaugh
- License: gpl-3.0
- Created: 2025-04-14T04:43:55.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-14T04:53:25.000Z (about 1 year ago)
- Last Synced: 2025-04-14T05:35:17.607Z (about 1 year ago)
- Language: C
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```