Rust clone of Boomshine targeting WebAssembly
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
www
.gitignore
Cargo.toml
LICENSE
README.md

README.md

dots

Clone of Boomshine. This version can be played here

The logic is implemented in Rust targeting WebAssembly, with the rendering handled by JavaScript to a canvas element.

screenshot

Usage

Play the current release on deciduously.com.

Develop

Requires Rust nightly and wasm-pack.

  1. Clone this repo
  2. Execute wasm-pack build in the project root
  3. Execute yarn link in the newly generated pkg dir to make the WASM module available to the frontend
  4. Execute yarn link dots in the www dir
  5. If this is the first run, execute yarn install in the www dir
  6. Execute yarn start from within www. This will serve the app on localhost:8080

For future rebuilds, you only need step 2 every time you change the Rust code and 6 just once to start the dev server.

Compile with --no-default-features to disable the console error debugging machinery for deployment.

Acknowledgements

The rustwasm book was a great kicking off point.