Rust WASM-based game-of-life https://life.sarsoo.xyz
Go to file
2021-06-21 23:39:44 +01:00
.github/workflows changing working directories 2021-06-21 22:46:38 +01:00
src update everything, add CI 2021-06-21 22:41:48 +01:00
tests game working 2020-10-11 21:46:15 +01:00
www renamed package 2021-06-21 23:39:44 +01:00
.gitignore game working 2020-10-11 21:46:15 +01:00
Cargo.toml updated readme 2021-06-21 23:31:56 +01:00
README.md updated readme 2021-06-21 23:31:56 +01:00

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

  1. Setup a Rust + wasm-pack environment and a Node environment
  2. Build the Rust library into a WASM module
    • wasm-pack build
  3. Move to the Js workspace
    • cd www
  4. Install the Js dependencies
    • npm install
  5. Build the Js frontend with Rust WASM module
    • npm run build