"Conway's Game of Life" written in Rust (by using Bevy).
Prerequisite:
- You should have
rustup
installed and have all the necessary tools for Rust development such ascargo
andrustc
.
Just
cargo run
- Run
rustup target add wasm32-unknown-unknown
- Run
cargo install wasm-pack
- The following actions are required to work around an issue in Bevy 0.5.0, which should be fixed in the next release of Bevy; Run
cargo update -p tracing-wasm --precise 0.2.0
- Run
wasm-pack build --target web --release
.wasm
files, etc. will be generated underpkg
directory.- Create an HTML file like this.
- Host a web server or get a web server somewhere.
- Deploy the
pkg
directory and the HTML file to that server. - Access the HTML file on that server with a modern browser.