From de8ef49de3ae1a55b97048da23bc0711bf6b574a Mon Sep 17 00:00:00 2001 From: andy Date: Tue, 22 Jun 2021 15:28:31 +0100 Subject: [PATCH] added bootstrap --- README.md | 2 + www/index.html | 128 ++++++++++++++++++++++++++++++++++++----------- www/index.js | 2 +- www/package.json | 2 +- 4 files changed, 102 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index 90ef3db..7987aa4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ Game of Life =============== +![gof-ci](https://github.com/sarsoo/game-of-life/actions/workflows/test.yml/badge.svg) + ## [Try it Out!](https://sarsoo.github.io/game-of-life/) WASM-based game of life following the [Rust WASM book](https://rustwasm.github.io/docs/book/introduction.html) tutorial. diff --git a/www/index.html b/www/index.html index 1469a49..b04985d 100644 --- a/www/index.html +++ b/www/index.html @@ -1,38 +1,106 @@ - + + + game of life - - - - - - - - - - + + + +
+
+

Game of Life

+
+
+
+
+ + +
+
+ + +
+
+
+
+ + +
+
+ + +
+
+
+
+ + +
+
+
+ +
+
+ +
+
+
+
+
+ - - - - - -
+ + - - + + + + + + + \ No newline at end of file diff --git a/www/index.js b/www/index.js index dcce3d6..8459fcf 100644 --- a/www/index.js +++ b/www/index.js @@ -72,7 +72,7 @@ const drawCells = () => { }; const renderSingle = () => { - fps.render(); //new + // fps.render(); //new universe.tick(); drawGrid(); diff --git a/www/package.json b/www/package.json index d9d926f..08ad764 100644 --- a/www/package.json +++ b/www/package.json @@ -1,7 +1,7 @@ { "name": "game-of-life-web", "version": "0.1.0", - "description": "basic wasm-based game-of-life", + "description": "Rust wasm-based game-of-life", "main": "index.js", "scripts": { "build": "webpack --config webpack.config.js",