Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/deciduously/dots
- Owner: deciduously
- License: mit
- Created: 2018-09-01T01:17:46.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T03:26:09.000Z (almost 2 years ago)
- Last Synced: 2024-10-09T19:05:57.594Z (about 1 month ago)
- Topics: 2d-game, canvas, canvas-game, game, javascript, rust, rust-wasm, wasm, wasm-example, wasm-pack, webassembly
- Language: Rust
- Homepage: https://deciduously.github.io/dots/
- Size: 1.6 MB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.