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 585d2339a6 Update Readme 2020-06-10 19:50:37 +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 Update JS 2020-06-10 19:48:00 +02:00
.appveyor.yml Initial Commit 2020-06-10 10:56:43 +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 Initial Commit 2020-06-10 10:56:43 +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 Update Readme 2020-06-10 19:50:37 +02:00

README.md

About

Tweak of the great Wasm tutorial here : [tutorials]: https://rustwasm.github.io/docs/wasm-pack/tutorials/index.html

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