aboutsummaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorJoris2020-01-28 09:55:58 +0100
committerJoris2020-01-29 10:12:31 +0100
commit1b6a7e0d00703e3da2e1620b5a2b2cba027161de (patch)
tree5143f784e1529d3b6c04116c84f09c426bb257b0 /public
parent197b6fa7aa810147d63209408c3a378ec552d0f4 (diff)
Implement game of life
Diffstat (limited to 'public')
l---------public/game_of_life.js1
l---------public/game_of_life_bg.wasm1
-rw-r--r--public/index.html28
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>