From c9fc2ca532c5219a087924ece1e38be19c25f006 Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Thu, 18 Jun 2026 16:15:46 -0400 Subject: Update --- 2026/framing/index.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to '2026/framing/index.html') 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; } -- cgit v1.2.3