summaryrefslogtreecommitdiff
path: root/2026/games_submissions/peetseater/harness.html
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2026-07-17 03:10:43 -0400
committerLLLL Colonq <llll@colonq>2026-07-17 03:10:43 -0400
commit07a36f2b38a5cba402ebc5158710f5a85f443456 (patch)
treef28855384eadc73f49cc1a707a73896f87bc5530 /2026/games_submissions/peetseater/harness.html
parent951b316773265052fbc5fa546bbcf31bef277062 (diff)
Post-stream update
Diffstat (limited to '2026/games_submissions/peetseater/harness.html')
-rw-r--r--2026/games_submissions/peetseater/harness.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/2026/games_submissions/peetseater/harness.html b/2026/games_submissions/peetseater/harness.html
new file mode 100644
index 0000000..be1eac3
--- /dev/null
+++ b/2026/games_submissions/peetseater/harness.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>LCOLONQ Game Jam 2026 Testing Harnass</title>
+</head>
+<body>
+ <iframe width="480px" height="320px" src="/games/micro2026/index.html" allow="*" sandbox="allow-scripts allow-same-origin"></iframe>
+ <button id="send_start">Send Start</button>
+ <label>Difficulty
+ <input id="difficulty" type="number" value="0" />
+ </label>
+ <p id="child-messages"><p>
+ <script>
+ const iframe = document.querySelector("iframe");
+ const difficulty = document.getElementById('difficulty');
+ iframe.onload = function() {
+ const start = document.getElementById("send_start");
+ start.onclick = () => {
+ iframe.contentWindow.postMessage({op: "start", difficulty: parseInt(difficulty.value,10)}, '*');
+ }
+ };
+
+ const childMessages = document.getElementById('child-messages');
+ window.addEventListener("message", (ev) => {
+ childMessages.textContent = childMessages.textContent + JSON.stringify(ev.data) + '\n';
+ });
+ </script>
+</body>
+</html> \ No newline at end of file