summaryrefslogtreecommitdiff
path: root/2026/framing/index.html
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2026-06-18 16:15:46 -0400
committerLLLL Colonq <llll@colonq>2026-06-18 16:15:46 -0400
commitc9fc2ca532c5219a087924ece1e38be19c25f006 (patch)
tree7c9d8e32617fab6e6179fe70893a3027714ea4e7 /2026/framing/index.html
parent068f3b9dc0522b03af534479cfa300a720ae86fa (diff)
Update
Diffstat (limited to '2026/framing/index.html')
-rw-r--r--2026/framing/index.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/2026/framing/index.html b/2026/framing/index.html
index a38f0f5..c4bb579 100644
--- a/2026/framing/index.html
+++ b/2026/framing/index.html
@@ -21,8 +21,11 @@
});
window.addEventListener("message", ev => {
switch (ev.data.op) {
- case "loselife":
- window.wasmBindings.lose_life();
+ case "startgame":
+ window.wasmBindings.start_game();
+ break;
+ case "endgame":
+ window.wasmBindings.end_game(ev.data.win);
break;
default: console.log(`unknown event: ${ev}`); break;
}