h1g0 / conways_game_of_life.rs

"Conway's Game of Life" written in Rust (by using Bevy).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

conways-game-of-life.rs

"Conway's Game of Life" written in Rust (by using Bevy).

Screenshot

Screenshot 1

Simple WASM Demo (in Japanese)

Demo

Build / Run

Prerequisite:

  • You should have rustup installed and have all the necessary tools for Rust development such as cargo and rustc.

Run on your computer (Windows/Mac/Linux)

Just

cargo run

Build for WASM (to run on your browser)

  1. Run rustup target add wasm32-unknown-unknown
  2. Run cargo install wasm-pack
  3. 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
  4. Run wasm-pack build --target web --release
  5. .wasm files, etc. will be generated under pkg directory.
  6. Create an HTML file like this.
  7. Host a web server or get a web server somewhere.
  8. Deploy the pkg directory and the HTML file to that server.
  9. Access the HTML file on that server with a modern browser.

About

"Conway's Game of Life" written in Rust (by using Bevy).

License:MIT License


Languages

Language:Rust 100.0%