TOC
wasm-game-of-life
AgainstEntropy • Updated Feb 1, 2024
In this project, I followed the The Rust and WebAssembly Book and learned the following things:
- About Rust and WebAssembly
- How to set up a Rust toolchain for compiling to WebAssembly.
- How to debug WebAssembly modules compiled from Rust.
- How to time profile Rust and WebAssembly programs to make them faster.
- About JavaScript and
npm
- How to do version control of
npm
withnvm
- About polyglot
- Interfacing Rust and JavaScript with WebAssembly
- A workflow for developing programs made from Rust, WebAssembly, JavaScript, HTML, and CSS.
Setup
Install toolchains
Rust
cargo-generate
wasm-pack
npm
Initialize the project
Implementation
Testing
Debugging
Could not find `console` in `web_sys`
Updated Nov 11, 2019
I learned how to control FPS in HTML animation from the demo below
I learned how to detect
Ctrl+Click
or Shift+Click
here