Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.26 KB

README.md

File metadata and controls

34 lines (24 loc) · 1.26 KB

Oregano

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.

Building

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.

Links