diff options
| author | LLLL Colonq <llll@colonq> | 2026-08-26 23:47:59 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-08-26 23:47:59 -0400 |
| commit | 0d2d8cd897e94bd94e0b3ae7c6ce9aa580a44a0a (patch) | |
| tree | e9039d1c3aedca515d6cb499451d4b73aca4f5fd /2026/games/asrael_io/index.html | |
| parent | 242943e5b023ce40eb3be826c418a478d4672f78 (diff) | |
Add a_tension_span
Diffstat (limited to '2026/games/asrael_io/index.html')
| -rw-r--r-- | 2026/games/asrael_io/index.html | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/2026/games/asrael_io/index.html b/2026/games/asrael_io/index.html deleted file mode 100644 index 170f0f0..0000000 --- a/2026/games/asrael_io/index.html +++ /dev/null @@ -1,64 +0,0 @@ -<!doctype html>
-<html>
- <head>
- <link rel="stylesheet" href="./index-d2f7d439dd4e8311.css" integrity="sha384-oazrHREWfMzqvJsEZXQn/sGkexbgnuc46PCPYcj+5PQsn+e2XPzORPWZ0tV76QD1"/>
- -<script type="module"> -import init, * as bindings from './cj2k26-775b42dad04180ed.js'; -const wasm = await init({ module_or_path: './cj2k26-775b42dad04180ed_bg.wasm' }); - - -window.wasmBindings = bindings; - - -dispatchEvent(new CustomEvent("TrunkApplicationStarted", {detail: {wasm}})); - -</script>
- <script>
- window.jamStart = false;
- window.jamDifficulty = 0;
- window.jamShouldStart = () =>
- window.jamStart || Boolean(window.lcolonqJamStart);
- window.jamGetDifficulty = () => {
- if (window.jamDifficulty) return window.jamDifficulty;
- if (typeof window.lcolonqJamStart === "number") return window.lcolonqJamStart;
- return 0;
- };
- window.jamStarted = (verb) => window.parent.postMessage({op: "started", verb});
- window.jamDone = (win) => window.parent.postMessage({op: "done", win});
-
- window.addEventListener("message", (e) => {
- if (e.data && e.data.op === "start") {
- window.jamStart = true;
- if (typeof e.data.difficulty === "number") {
- window.jamDifficulty = e.data.difficulty;
- }
- }
- });
-
- if (window.parent === window) {
- window.jamStart = true;
- window.jamDifficulty = Math.floor(Math.random() * 8);
- console.log("difficulty", window.jamDifficulty);
- } else {
- window.parent.postMessage({op: "ready"});
- }
-
- const fit = () => {
- const c = document.querySelector("canvas");
- if (!c) {
- requestAnimationFrame(fit);
- return;
- }
-
- const r = Math.max(
- 1,
- Math.min(Math.floor(innerWidth / 240), Math.floor(innerHeight / 160), 4),
- );
- c.style.transform = `translate(-50%, -50%) scale(${r})`;
- };
- window.addEventListener("resize", fit);
- fit();
- </script>
- <link rel="modulepreload" href="./cj2k26-775b42dad04180ed.js" crossorigin="anonymous" integrity="sha384-MjPCRFB2j75GNy68lj1zVlI8KzEN9cW8KuPV8JiUDHReU6/X7gcCSFPpdrqySa91"><link rel="preload" href="./cj2k26-775b42dad04180ed_bg.wasm" crossorigin="anonymous" integrity="sha384-4x0fodXQ7MdX7xLj7yTcGbL7CyY3p39+PzkTnHBlRnhg2w8ueFc7SDoFWZBI3s/W" as="fetch" type="application/wasm"></head>
-</html>
|
