summaryrefslogtreecommitdiff
path: root/2026/games_submissions/samzyre/index.html
blob: 48a021839ba0b7de12600f6350790cc293c1abf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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>