diff options
Diffstat (limited to '2026/games_submissions/asrael_io/source/index.html')
| -rw-r--r-- | 2026/games_submissions/asrael_io/source/index.html | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/2026/games_submissions/asrael_io/source/index.html b/2026/games_submissions/asrael_io/source/index.html deleted file mode 100644 index 5002f27..0000000 --- a/2026/games_submissions/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>
|
