An extended version of the WASM Game of Life example project.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
jelemux a1b3de80da update roadmap 12 months ago
examples forgot deploy.rs 1 year ago
src got it working, but with js 1 year ago
tests initial commit 1 year ago
www got it working, but with js 1 year ago
.cargo-ok initial commit 1 year ago
.gitignore finally made got the example to work, will replace JS code with Rust/WASM now 1 year ago
.travis.yml initial commit 1 year ago
Cargo.toml bump version to 0.1.1 1 year ago
LICENSE_APACHE initial commit 1 year ago
LICENSE_MIT initial commit 1 year ago
README.md update roadmap 12 months ago

README.md

wasm-game-of-life

This is my extended version of the WASM Game of Life example project.

📚 About

This project is based on the aforementioned WASM Game of Life example project.

🎮 Features

  • Start/Stop button
  • Random universe generation
  • Clear button
  • Delay slider
  • Change universe size
  • Click to toggle cells
  • Hold mouse button and drag to toggle multiple cells
  • Works without Node.js / npm

🗺 Roadmap

  • Replace JavaScript with Rust/WASM -> Yew!
  • Make universe unbounded
  • Implement hashlife
  • Upload and insert patterns
  • Download in different formats (picture, RLE, maybe others)
  • Import rules (by rule string/integers)

🚲 Usage

🛠️ Needed tools

📦 Build with wasm-pack build

wasm-pack build --target web

🔍 Use the debug flag for tracing errors

wasm-pack build --debug --target web

🎬 Run on test server with cargo run --example deploy

cargo run --example deploy

⚙ Test in Headless Browsers with wasm-pack test

Note: There are no tests yet

wasm-pack test --headless --firefox