diff options
| author | LLLL Colonq <llll@colonq> | 2026-07-17 03:10:43 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-07-17 03:10:43 -0400 |
| commit | 07a36f2b38a5cba402ebc5158710f5a85f443456 (patch) | |
| tree | f28855384eadc73f49cc1a707a73896f87bc5530 /2026/games_submissions/samzyre/index.html | |
| parent | 951b316773265052fbc5fa546bbcf31bef277062 (diff) | |
Post-stream update
Diffstat (limited to '2026/games_submissions/samzyre/index.html')
| -rw-r--r-- | 2026/games_submissions/samzyre/index.html | 52 |
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 |
