summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--2026/README.org2
-rw-r--r--2026/index.html12
2 files changed, 8 insertions, 6 deletions
diff --git a/2026/README.org b/2026/README.org
index 522ce0a..65a8f39 100644
--- a/2026/README.org
+++ b/2026/README.org
@@ -13,6 +13,6 @@ python3 -m http.server
and then open [[http://localhost:8000]].
-For testing, you can add your own game to the list of game URLs in [[./index.html]].
+For testing, you can add your own game to the list of game URLs at the top of [[./index.html]].
Note that this is all still very early stages, so things may evolve and churn unexpectedly.
Here be dragons!
diff --git a/2026/index.html b/2026/index.html
index 14f629a..68a44bc 100644
--- a/2026/index.html
+++ b/2026/index.html
@@ -1,5 +1,12 @@
<!DOCTYPE html>
<html lang="en">
+ <script type="module">
+ window.microgames = [
+ {url: "./examples/raylib/output/index.html", loaded: null, ready: false},
+ {url: "./examples/godot/output/index.html", loaded: null, ready: false},
+ {url: "./examples/js/index.html", loaded: null, ready: false},
+ ];
+ </script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
@@ -49,11 +56,6 @@
<script type="module">
let framing = document.getElementById("jam-framing-iframe");
let microgame_index = 0;
- let microgames = [
- {url: "./examples/raylib/output/index.html", loaded: null, ready: false},
- {url: "./examples/godot/output/index.html", loaded: null, ready: false},
- {url: "./examples/js/index.html", loaded: null, ready: false},
- ];
let iframes = [...Array(5).keys()].map(i => document.getElementById(`jam-game-iframe-${i}`));
function resizeView() {
let least_ratio = Math.min(Math.floor(window.innerWidth / 480), Math.floor(window.innerHeight / 320));