summaryrefslogtreecommitdiff
path: root/2026/games/asrael_io/source/index.html
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2026-08-17 20:14:16 -0400
committerLLLL Colonq <llll@colonq>2026-08-17 20:14:16 -0400
commitde99c5f7636a952025ea13de02bafd25bcb6bdec (patch)
treebe359424af4f6717103e3b667b6529ae5a4b4e6a /2026/games/asrael_io/source/index.html
parent4d4d1f24721f27fbf37e1070be6414de130ace61 (diff)
Fix broken
Diffstat (limited to '2026/games/asrael_io/source/index.html')
-rw-r--r--2026/games/asrael_io/source/index.html53
1 files changed, 0 insertions, 53 deletions
diff --git a/2026/games/asrael_io/source/index.html b/2026/games/asrael_io/source/index.html
deleted file mode 100644
index 5002f27..0000000
--- a/2026/games/asrael_io/source/index.html
+++ /dev/null
@@ -1,53 +0,0 @@
-<!doctype html>
-<html>
- <head>
- <link data-trunk rel="scss" href="index.scss" />
- <link data-trunk rel="rust" />
- <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>
- </head>
-</html>