Skip to content

yamgent/rusty-jam-2-dog-chicken

Repository files navigation

rusty_jam_2_dog_chicken

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!

Game Info

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 combine
  • X: Select the second item to combine
  • <>^v: Move the cursor around the list of items

Prerequisite

Ensure that you have w4 CLI installed (skip this step if you already have w4):

yarn global add wasm4

Development

w4 watch

Building

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.

Release

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

./tests.sh

Links

  • 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!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published