27 lines
676 B
Markdown
27 lines
676 B
Markdown
# snek
|
|
|
|
A game written in Zig for the [WASM-4](https://wasm4.org) fantasy console.
|
|
|
|
## Building
|
|
|
|
Build the cart by running:
|
|
|
|
```shell
|
|
zig build -Drelease-small=true
|
|
```
|
|
|
|
Then run it with:
|
|
|
|
```shell
|
|
w4 run zig-out/lib/cart.wasm
|
|
```
|
|
|
|
For more info about setting up WASM-4, see the [quickstart guide](https://wasm4.org/docs/getting-started/setup?code-lang=zig#quickstart).
|
|
|
|
## Links
|
|
|
|
- [Documentation](https://wasm4.org/docs): Learn more about WASM-4.
|
|
- [Snake Tutorial](https://wasm4.org/docs/tutorials/snake/goal): Learn how to build a complete game
|
|
with a step-by-step tutorial.
|
|
- [GitHub](https://github.com/aduros/wasm4): Submit an issue or PR. Contributions are welcome!
|