Simple space shooter game, to learn some rust & demo the macroquad library.
Step-by-step instructions here: https://mq.agical.se/SUMMARY.html
| src | ||
| Cargo.lock | ||
| Cargo.toml | ||
| Dockerfile | ||
| index.html | ||
| mq_js_bundle.js | ||
| README.md | ||
Macroquad test game
Code & guide here
Assets
Missing from the repo is the assets dir, which can be downloaded here.
wget https://mq.agical.se/assets.zip
unzip assets.zip
This contains the sound effects, and graphics for the UI, ships, and projectiles.
Running
You can run simply w/ cargo run
To build the wasm, you'll want to make sure you have rustup installed, then run the following:
rustup target add wasm32-unknown-unknown
cargo build --release --target wasm32-unknown-unknown
Make sure the index.html is correctly pointing at the mq_js_bundle.js and the wasm file.