summaryrefslogtreecommitdiff
path: root/2026/games_submissions/samzyre/index.html
diff options
context:
space:
mode:
Diffstat (limited to '2026/games_submissions/samzyre/index.html')
-rw-r--r--2026/games_submissions/samzyre/index.html52
1 files changed, 52 insertions, 0 deletions
diff --git a/2026/games_submissions/samzyre/index.html b/2026/games_submissions/samzyre/index.html
new file mode 100644
index 0000000..48a0218
--- /dev/null
+++ b/2026/games_submissions/samzyre/index.html
@@ -0,0 +1,52 @@
+<html>
+
+<head>
+ <title>rctrctrl</title>
+ <meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
+
+ <style>
+ html,
+ body {
+ margin: 0;
+ padding: 0;
+ width: 100%;
+ height: 100%;
+ overflow: hidden;
+ }
+
+ canvas {
+ display: block;
+ width: 100vw;
+ height: 100vh;
+ }
+ </style>
+<link rel="modulepreload" href="./microjam_rctrctrl-f61f8eb97d2bebe5.js" crossorigin="anonymous" integrity="sha384-sB3RNS0ypZaFAp7nRGjLfKFy1SBikFtXgCDvrr+jPvGs70ozD8DWlqbskwz8eWt1"><link rel="preload" href="./microjam_rctrctrl-f61f8eb97d2bebe5_bg.wasm" crossorigin="anonymous" integrity="sha384-/0GpaK9lZrKjuDyfa7jnUNS0I+/v5OOWgQHN4zHeMQC8aTqcybg7aKtXr3KAqYrd" as="fetch" type="application/wasm"></head>
+
+<body>
+ <script>
+ function send_ready() { window.parent.postMessage({ op: "ready" }); }
+ function send_started(verb) { window.parent.postMessage({ op: "started", verb }); }
+ function send_done(win) { window.parent.postMessage({ op: "done", win }); }
+ addEventListener("message", (ev) => {
+ if (ev.data.op == "start") {
+ window.wasmBindings.game_start(ev.data.difficulty);
+ } else {
+ console.log(`unknown message: ${ev.data}`);
+ }
+ });
+ </script>
+ <canvas id="notan_app"></canvas>
+
+<script type="module">
+import init, * as bindings from './microjam_rctrctrl-f61f8eb97d2bebe5.js';
+const wasm = await init({ module_or_path: './microjam_rctrctrl-f61f8eb97d2bebe5_bg.wasm' });
+
+
+window.wasmBindings = bindings;
+
+
+dispatchEvent(new CustomEvent("TrunkApplicationStarted", {detail: {wasm}}));
+
+</script></body>
+
+</html> \ No newline at end of file