A game written in C for the WASM-4 fantasy console.
This version of the project was abandoned due to running into an incomprehensible memory bug which I narrowed down to s->b->vy -= force * dy;
causing particle_count
to change.
Download WASI SDK:
export WASI_VERSION=16
export WASI_VERSION_FULL=${WASI_VERSION}.0
wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${WASI_VERSION}/wasi-sdk-${WASI_VERSION_FULL}-linux.tar.gz
tar xvf wasi-sdk-${WASI_VERSION_FULL}-linux.tar.gz
Run the game, rebuilding automatically when source files are changed, by running:
# Point it to the extracted folder
export WASI_SDK_PATH=~/Downloads/wasi-sdk-16.0/
# This will open up http://localhost:4444 in your browser unless you pass --no-open
w4 watch
For more info about setting up WASM-4, see the quickstart guide.
- Documentation: Learn more about WASM-4.
- Snake Tutorial: Learn how to build a complete game with a step-by-step tutorial.
- WASM-4 on GitHub: Submit an issue or PR. Contributions are welcome!