A zero-player game to learn how to use Rust, WebAssembly, and JavaScript together.
- cloning the project template and understanding the folder structure.
- building the project with wasm-pack.
- putting it into a web page with wasm-app.
- serving locally with webpack.
- implementing the Game of Life with Rust.
- rendering to canvas directly from memory with JavaScript.
- testing the tick function and debugging.
- pausing and resuming the game.
- toggling a cell's state on click.
- optimizing performances with time profiling and benchmarking.
- shrinking .wasm size with wasm-opt and gzip.
Based on The Rust and WebAssembly Book by The Rust and WebAssembly Working Group (2021).
