Game made for the Ludum Dare 58 Compo.
Build railroads, collect garbage, and take it to the recycling centers.
Fill all recycling centers to win.
- Mouse controls to build.
- Space to start/stop your train.
- R to reset the current level.
- H for in-game help.
The game requires only the standard Rust toolchain with the wasm32-unknown-unknown target installed.
# Produces a debug build at `target/wasm32-unknown-unknown/debug`
cargo build
# Produces a production build at `target/wasm32-unknown-unknown/release`
cargo build --releaseRequires live-server.
chmod +x dev-server.sh
# Serve debug build
./dev-server.sh
# Serve release build
./dev-server.sh --releaseThis will start the development web server, watch for builds and reload the browser window if there is a new one.
To build and package a release:
chmod +x release.sh
./release.sh <target>Available targets:
wasm- WebAssembly build for browserswindows- Windows executable (x86_64-pc-windows-gnu)linux-musl- Linux with musl libc (x86_64-unknown-linux-musl)linux-gnu- Linux with glibc (x86_64-unknown-linux-gnu)
Example:
./release.sh wasm
./release.sh windows
./release.sh linux-gnuThis will build a release version and create a zip package in build/<target>/ with the version from Cargo.toml.