A game written in Rust for the WASM-4 fantasy console.
Written for the Rusty Jam 2 game jam. The theme is a picture of a dog combined with a chicken.
Click here to play on itch.io!
The objective is to combine items, and get the necessary items in order to eventually combine into a dogchicken.
Controls:
Z
: Select the first item to combineX
: Select the second item to combine<>^v
: Move the cursor around the list of items
Ensure that you have w4 CLI installed (skip this step if you already have w4):
yarn global add wasm4
w4 watch
Update assets with the png2src script:
./png2src.sh
Build the cart by running:
cargo build --release
Then run it with:
w4 run target/wasm32-unknown-unknown/release/cart.wasm
For more info about setting up WASM-4, see the quickstart guide.
Ensure that you have binaryen optimizer installed: binaryen releases.
(NOTE: wasm-opt version must be > 98 to have --zero-filled-memory
option).
Then, run the following:
./release.sh
./tests.sh
- Documentation: Learn more about WASM-4.
- Snake Tutorial: Learn how to build a complete game with a step-by-step tutorial.
- GitHub: Submit an issue or PR. Contributions are welcome!