Tutorial from https://rustwasm.github.io/docs/book/game-of-life/implementing.html Extended to change memory from Javascript on Mouse click.
 
 
 
Go to file
Benoît ac1fad7be2 Updating link 2020-06-10 20:16:36 +02:00
src Update Game of life to allow changing Cell from JS 2020-06-10 19:20:08 +02:00
tests Initial Commit 2020-06-10 10:56:43 +02:00
www Change page title 2020-06-10 20:06:41 +02:00
.cargo-ok Initial Commit 2020-06-10 10:56:43 +02:00
.gitignore Initial Commit 2020-06-10 10:56:43 +02:00
.travis.yml Initial Commit 2020-06-10 10:56:43 +02:00
Cargo.toml Update missing field in Cargo.toml 2020-06-10 19:57:33 +02:00
LICENSE_APACHE Initial Commit 2020-06-10 10:56:43 +02:00
LICENSE_MIT Initial Commit 2020-06-10 10:56:43 +02:00
README.md Updating link 2020-06-10 20:16:36 +02:00

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";
(…)
--