Tutorial from https://rustwasm.github.io/docs/book/game-of-life/implementing.html Extended to change memory from Javascript on Mouse click.
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.
 
 
 
Benoît 1bb2d924ce Fix Canvas cell position compute from tutorial 3 years ago
src Randomize cell initialization 3 years ago
tests Initial Commit 3 years ago
www Fix Canvas cell position compute from tutorial 3 years ago
.cargo-ok Initial Commit 3 years ago
.gitignore Initial Commit 3 years ago
.travis.yml Initial Commit 3 years ago
Cargo.toml Randomize cell initialization 3 years ago
LICENSE_APACHE Initial Commit 3 years ago
LICENSE_MIT Initial Commit 3 years ago
README.md Updating link 3 years ago

README.md

About

Tweak of the great Wasm tutorial here : tutorials

Note for myself

Crée l'arborescence www

$ wasm-pack build
$ npm init wasm-app www
$ cd www/
$ npm install

Puis :

$ vim www/package.json
--
  "dependencies": {
    "wasm-game-of-life": "file:../pkg", // Add this line!
--

Puis :

$ vim www/index.js
--
import * as wasm from "wasm-game-of-life";
(…)
--