Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/deciduously/dots

Rust clone of Boomshine targeting WebAssembly
https://github.com/deciduously/dots

2d-game canvas canvas-game game javascript rust rust-wasm wasm wasm-example wasm-pack webassembly

Last synced: 25 days ago
JSON representation

Rust clone of Boomshine targeting WebAssembly

Awesome Lists containing this project

README

        

# dots
Clone of [Boomshine](http://www.k2xl.com/games/boomshine/). This version can be played [here](https://deciduously.github.io/dots/)

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

![screenshot](https://i.imgur.com/QYgJVLW.png)

## Usage

Play the current release on [deciduously.com](http://deciduously.com/static/extern/dots/index.html).

## Develop

Requires `wasm-pack`.

1. Clone this repo
2. Execute `wasm-pack build` in the project root
5. If this is the first run, execute `npm install` in the `www` dir
6. Execute `npm run 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.

## Acknowledgements

The [rustwasm book](https://rustwasm.github.io/book/) was a great kicking off point.