diff options
author | Joris | 2020-01-28 09:55:58 +0100 |
---|---|---|
committer | Joris | 2020-01-29 10:12:31 +0100 |
commit | 1b6a7e0d00703e3da2e1620b5a2b2cba027161de (patch) | |
tree | 5143f784e1529d3b6c04116c84f09c426bb257b0 /public | |
parent | 197b6fa7aa810147d63209408c3a378ec552d0f4 (diff) |
Implement game of life
Diffstat (limited to 'public')
l--------- | public/game_of_life.js | 1 | ||||
l--------- | public/game_of_life_bg.wasm | 1 | ||||
-rw-r--r-- | public/index.html | 28 |
3 files changed, 30 insertions, 0 deletions
diff --git a/public/game_of_life.js b/public/game_of_life.js new file mode 120000 index 0000000..998a5ea --- /dev/null +++ b/public/game_of_life.js @@ -0,0 +1 @@ +../pkg/game_of_life.js
\ No newline at end of file diff --git a/public/game_of_life_bg.wasm b/public/game_of_life_bg.wasm new file mode 120000 index 0000000..fe3f9b8 --- /dev/null +++ b/public/game_of_life_bg.wasm @@ -0,0 +1 @@ +../pkg/game_of_life_bg.wasm
\ No newline at end of file diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..ed2639f --- /dev/null +++ b/public/index.html @@ -0,0 +1,28 @@ +<html> + <head> + <meta content="text/html;charset=utf-8" http-equiv="Content-Type"/> + <style> + body { + margin: 0; + width: 100%; + height: 100%; + background-color: #333333; + display: flex; + align-items: center; + justify-content: center; + } + </style> + </head> + <body> + <canvas id="canvas" height="800" width="800" /> + <script type="module"> + import init from './game_of_life.js'; + + async function run() { + await init(); + } + + run(); + </script> + </body> +</html> |