Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 994 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 994 Bytes

Asteroids

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.

Screenshot showing Asteroids game

NB: Macroquad does actually have an Asteroids example, however this was implemented without referring to that at all.

Running

cargo run --release

Publishing to Github Pages

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.)