An implementation of Asteroids in Rust, using the Macroquad library for rendering, input handling, sound, etc.
You can play it in your web browser, assuming that it hasn't bitrotted.
NB: Macroquad does actually have an Asteroids example, however this was implemented without referring to that at all.
cargo run --release
publish-wasm.bat
Test it locally with:
cargo install basic-http-server
basic-http-server dist/
Once the changes are committed to master* and pushed, the changes will be live at https://caspark.github.io/asteroids-macroquad/ within a minute or two.
(* yes storing junk on master isn't great and there are better ways to deal with this in Github pages. But it doesn't matter for this simple case.)