Skip to content

willGuimont/rolly-dango

Repository files navigation

Rolly Dango

Rolly Dango, an isometric rolling puzzle made with WASM-4 by @samX500 and @willGuimont.

Try the game here or on itch.io!

rolly dango

Here's some key points of our project:

  • We made our own ECS (entity-component-systems) from scratch
  • To save cartridge space, we built our own Huffman coding algorithm
  • To help ourselves make levels, we built our own level editor using p5.js
  • Made all of our sprites using Aseprite

Our level editor: level editor

Dependencies

You'll need a nightly version of Nim because we need the -d:nimNoQuit from this pull request. To do so, install the latest nightly with:

choosenim devel --latest

Optionally, you can install binaryen to optimize further the binary size.

Build cartridge

# Debug mode
nimble dbg
# Release mode
nimble rel

Run the tests

nimble test

Deploy to GitHub-Pages

./deploy.sh

Running the cartridge

# Run compiled cartridge in your web browser
w4 run build/cart.wasm
# Run with hot reloading
w4 watch
# Run natively
w4 run-native build/cart.wasm

Useful tools

w4 png2src --nim top.png down.png left.png right.png
w4 bundle --html build/html/index.html --title Dango --description "Rolling puzzle game" --icon-file "assets/sprites/dangoBeeg.png" build/cart.wasm
w4 bundle --linux dango carts/cart.wasm