summaryrefslogtreecommitdiff
path: root/2026/framing
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2026-08-04 17:58:22 -0400
committerLLLL Colonq <llll@colonq>2026-08-04 17:58:22 -0400
commitad2524a89f2a0e29088873b18eb458760fa796b1 (patch)
treed0aa7066821b73b291f27a9c02addc89cf4518c3 /2026/framing
parentcc8514251ee1828908161756228fa1c8357effc2 (diff)
Fix
Diffstat (limited to '2026/framing')
-rw-r--r--2026/framing/dist/game_lib-60b0f4d05477534a.js (renamed from 2026/framing/dist/game_lib-11388961d9fc6d79.js)10
-rw-r--r--2026/framing/dist/game_lib-60b0f4d05477534a_bg.wasm (renamed from 2026/framing/dist/game_lib-11388961d9fc6d79_bg.wasm)bin21820609 -> 21820618 bytes
-rw-r--r--2026/framing/dist/index.html6
-rw-r--r--2026/framing/dist/snippets/game_lib-09da6449fcb9d06e/src/bindings.js11
-rw-r--r--2026/framing/src/bindings.js11
-rw-r--r--2026/framing/src/game.rs1
6 files changed, 31 insertions, 8 deletions
diff --git a/2026/framing/dist/game_lib-11388961d9fc6d79.js b/2026/framing/dist/game_lib-60b0f4d05477534a.js
index 53cec92..d064b5e 100644
--- a/2026/framing/dist/game_lib-11388961d9fc6d79.js
+++ b/2026/framing/dist/game_lib-60b0f4d05477534a.js
@@ -1495,10 +1495,6 @@ function __wbg_get_imports() {
const ret = false;
return ret;
};
- imports.wbg.__wbindgen_closure_wrapper3230 = function(arg0, arg1, arg2) {
- const ret = makeMutClosure(arg0, arg1, 530, __wbg_adapter_43);
- return ret;
- };
imports.wbg.__wbindgen_closure_wrapper3231 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 530, __wbg_adapter_43);
return ret;
@@ -1516,10 +1512,14 @@ function __wbg_get_imports() {
return ret;
};
imports.wbg.__wbindgen_closure_wrapper3235 = function(arg0, arg1, arg2) {
+ const ret = makeMutClosure(arg0, arg1, 530, __wbg_adapter_43);
+ return ret;
+ };
+ imports.wbg.__wbindgen_closure_wrapper3236 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 530, __wbg_adapter_54);
return ret;
};
- imports.wbg.__wbindgen_closure_wrapper3461 = function(arg0, arg1, arg2) {
+ imports.wbg.__wbindgen_closure_wrapper3462 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 605, __wbg_adapter_57);
return ret;
};
diff --git a/2026/framing/dist/game_lib-11388961d9fc6d79_bg.wasm b/2026/framing/dist/game_lib-60b0f4d05477534a_bg.wasm
index 973ddba..f08e49f 100644
--- a/2026/framing/dist/game_lib-11388961d9fc6d79_bg.wasm
+++ b/2026/framing/dist/game_lib-60b0f4d05477534a_bg.wasm
Binary files differ
diff --git a/2026/framing/dist/index.html b/2026/framing/dist/index.html
index 2852915..5814bdc 100644
--- a/2026/framing/dist/index.html
+++ b/2026/framing/dist/index.html
@@ -6,8 +6,8 @@
<meta charset="UTF-8">
<script type="module">
-import init, * as bindings from '/framing/dist/game_lib-11388961d9fc6d79.js';
-const wasm = await init({ module_or_path: '/framing/dist/game_lib-11388961d9fc6d79_bg.wasm' });
+import init, * as bindings from '/framing/dist/game_lib-60b0f4d05477534a.js';
+const wasm = await init({ module_or_path: '/framing/dist/game_lib-60b0f4d05477534a_bg.wasm' });
window.wasmBindings = bindings;
@@ -23,7 +23,7 @@ dispatchEvent(new CustomEvent("TrunkApplicationStarted", {detail: {wasm}}));
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
<link rel="stylesheet" href="/framing/dist/index-1e3cd2ca0ba4d1ec.css" integrity="sha384-1q3UDTmLdOyf9/QxW+Imap//HWhTWNfvn7j2iwuUap3HSD6IOGG7pDS9VJMk7nKv"/>
<title>Jam 2026 Framing Device</title>
- <link rel="modulepreload" href="/framing/dist/game_lib-11388961d9fc6d79.js" crossorigin="anonymous" integrity="sha384-Rte3JuKt4XKm+pQHuHryu/S4lDtyVZ9MQjc3KLF6IZKiX/KUHmVsVwSTTalLcswu"><link rel="modulepreload" href="/framing/dist/snippets/teleia-727bf4351691f1c8/src/helpers.js" crossorigin="anonymous" integrity="sha384-HhtEY2WfGmhyPUSRWKZvqsRxYsdT/DLEdFUqWyDZt6G6lrNHmE1zMlw4BJ3RycRd"><link rel="modulepreload" href="/framing/dist/snippets/game_lib-09da6449fcb9d06e/src/bindings.js" crossorigin="anonymous" integrity="sha384-t8Fub2hhFd/kaqYNAU4KkZkCz5hrHWVD39SHYeSqNY8o4WnGFVGzS0XQ6RGr01oH"><link rel="preload" href="/framing/dist/game_lib-11388961d9fc6d79_bg.wasm" crossorigin="anonymous" integrity="sha384-G6x/3NgGuW/PN2jqYoYr+Xqr6ZM2SeJz92V3UePODdvXh4PqbF2bKhQQEqZJbDp1" as="fetch" type="application/wasm"></head>
+ <link rel="modulepreload" href="/framing/dist/game_lib-60b0f4d05477534a.js" crossorigin="anonymous" integrity="sha384-34feKGwj4If/0actH/hiCFakcYWMtlOocNU1HlGnqccoo50laWtXrwhn8jl/peMw"><link rel="modulepreload" href="/framing/dist/snippets/game_lib-09da6449fcb9d06e/src/bindings.js" crossorigin="anonymous" integrity="sha384-5OqMgKkpxoyJdg0zjf0uRBl5lKhgxNx4rdX+ML4CRyveCr3dizM3Lbxs58MxUzTz"><link rel="modulepreload" href="/framing/dist/snippets/teleia-727bf4351691f1c8/src/helpers.js" crossorigin="anonymous" integrity="sha384-HhtEY2WfGmhyPUSRWKZvqsRxYsdT/DLEdFUqWyDZt6G6lrNHmE1zMlw4BJ3RycRd"><link rel="preload" href="/framing/dist/game_lib-60b0f4d05477534a_bg.wasm" crossorigin="anonymous" integrity="sha384-aSPyubkdVZZrANV9QpIDhVP7dqhZTBloPiCvDXsIRxSJnhV1LYLTttHDa/a4iDPb" as="fetch" type="application/wasm"></head>
<body>
<script type="module">
window.addEventListener("TrunkApplicationStarted", async (event) => {
diff --git a/2026/framing/dist/snippets/game_lib-09da6449fcb9d06e/src/bindings.js b/2026/framing/dist/snippets/game_lib-09da6449fcb9d06e/src/bindings.js
index e9c2655..222b74d 100644
--- a/2026/framing/dist/snippets/game_lib-09da6449fcb9d06e/src/bindings.js
+++ b/2026/framing/dist/snippets/game_lib-09da6449fcb9d06e/src/bindings.js
@@ -5,3 +5,14 @@ export function js_update_lifetotal(lives) {
export function js_ready_to_reset() {
window.parent.postMessage({op: "readytoreset"});
}
+
+export function js_upload_highscore(score) {
+ if (typeof score === "number") {
+ let form = FormData();
+ form.append("score", score);
+ fetch("https://api.colonq.computer/api/jam/2026/score", {
+ method: "POST",
+ body: form,
+ });
+ }
+}
diff --git a/2026/framing/src/bindings.js b/2026/framing/src/bindings.js
index e9c2655..222b74d 100644
--- a/2026/framing/src/bindings.js
+++ b/2026/framing/src/bindings.js
@@ -5,3 +5,14 @@ export function js_update_lifetotal(lives) {
export function js_ready_to_reset() {
window.parent.postMessage({op: "readytoreset"});
}
+
+export function js_upload_highscore(score) {
+ if (typeof score === "number") {
+ let form = FormData();
+ form.append("score", score);
+ fetch("https://api.colonq.computer/api/jam/2026/score", {
+ method: "POST",
+ body: form,
+ });
+ }
+}
diff --git a/2026/framing/src/game.rs b/2026/framing/src/game.rs
index 5284132..a473d8e 100644
--- a/2026/framing/src/game.rs
+++ b/2026/framing/src/game.rs
@@ -363,6 +363,7 @@ impl teleia::state::Game for Game {
extern {
fn js_update_lifetotal(lives: i32);
fn js_ready_to_reset();
+ fn js_upload_highscore(score :i32);
}
#[wasm_bindgen]