A Conway's Game of Life demo using WebAssembly with Rust
and TypeScript
and rendering with WebGL 2
.
See rules.
See demo in Github Pages.
npm |
^6.0 |
Node.js |
^14.0 |
TypeScript |
^4.0 |
Rust |
^1.63.0 |
Cargo |
^1.63.0 |
wasm-pack |
^0.10.3 |
Also requires a browser compatible with WebGL 2
.
/(root)
/src # app entrypoint (Typescript / JavaScript)
/lib # lib entrypoint (Rust)
/static # static assets (e.g index.html)
npm install
# Builds the project and opens it in a new browser tab. Auto-reloads when the project changes.
npm start
# Builds the project and places it into the `dist` folder.
npm run build
# Runs tests in Firefox
npm test -- --firefox
# Runs tests in Chrome
npm test -- --chrome
# Runs tests in Safari
npm test -- --safari