Rust WASM-based game-of-life
https://life.sarsoo.xyz
268df93746
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.1 to 1.14.8. - [Release notes](https://github.com/follow-redirects/follow-redirects/releases) - [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.1...v1.14.8) --- updated-dependencies: - dependency-name: follow-redirects dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
.github/workflows | ||
src | ||
tests | ||
www | ||
.gitignore | ||
Cargo.toml | ||
README.md |
Game of Life
Try it Out!
WASM-based game of life following the Rust WASM book tutorial.
Rust WASM module for game logic with a JS frontend for rendering and processing user input.
Building
- Setup a Rust + wasm-pack environment and a Node environment
- Build the Rust library into a WASM module
wasm-pack build
- Move to the Js workspace
cd www
- Install the Js dependencies
npm install
- Build the Js frontend with Rust WASM module
npm run build