diff options
Diffstat (limited to '2026')
| -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) | bin | 21820609 -> 21820618 bytes | |||
| -rw-r--r-- | 2026/framing/dist/index.html | 6 | ||||
| -rw-r--r-- | 2026/framing/dist/snippets/game_lib-09da6449fcb9d06e/src/bindings.js | 11 | ||||
| -rw-r--r-- | 2026/framing/src/bindings.js | 11 | ||||
| -rw-r--r-- | 2026/framing/src/game.rs | 1 | ||||
| -rw-r--r-- | 2026/src/main.rs | 7 | ||||
| -rw-r--r-- | 2026/submissions.org | 2 |
8 files changed, 38 insertions, 10 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 Binary files differindex 973ddba..f08e49f 100644 --- a/2026/framing/dist/game_lib-11388961d9fc6d79_bg.wasm +++ b/2026/framing/dist/game_lib-60b0f4d05477534a_bg.wasm 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] diff --git a/2026/src/main.rs b/2026/src/main.rs index ad37e4a..07adb93 100644 --- a/2026/src/main.rs +++ b/2026/src/main.rs @@ -1,4 +1,5 @@ use axum::http::StatusCode; +use rand::Rng; use tower_http::services::ServeDir; use clap::{command, Arg, ArgAction}; @@ -47,7 +48,11 @@ pub async fn main() { axum::response::Html(include_str!("../index.html")) })) .route("/games.js", axum::routing::get(move || { - let gs = format!("window.MICROGAMES = {:?};\n", games); + let mut rng = rand::thread_rng(); + let mut keyed: Vec<_> = games.iter().map(|x| (x, rng.r#gen::<i32>())).collect(); + keyed.sort_by_key(|(_, i)| *i); + let shuffled: Vec<_> = keyed.iter().map(|(x, _)| *x).collect(); + let gs = format!("window.MICROGAMES = {:?};\n", shuffled); async { ([(axum::http::header::CONTENT_TYPE, "text/javascript".to_string())], gs) } diff --git a/2026/submissions.org b/2026/submissions.org index d615c64..654c4d0 100644 --- a/2026/submissions.org +++ b/2026/submissions.org @@ -11,7 +11,6 @@ - [X] distracted_penguin https://github.com/distractedpen/lcolonq-microgame-jam-2026 - [X] samzyre https://github.com/Samzyre/microjam_rctrctrl/releases - [X] prod -- [X] cammymoop https://github.com/Cammymoop/dice-battle-micro - [X] liquidcake1 http://pub.colonq.computer/~liquidcake/liquidcake.zip - [X] astatinchan - [X] icefoxzettai @@ -30,6 +29,7 @@ - [X] bytomancer https://github.com/bytomancer/clonq-jam-2026 - [X] doceys (needs update) - [X] just__jane (need to make sure it's scaled correctly) +- [ ] cammymoop https://github.com/Cammymoop/dice-battle-micro (update) - [ ] threecoff https://codeberg.org/threecoff/clennis (needs emscripten build) - [ ] jack turps https://github.com/jackturps/cowboy-micro-game (need restart fixes) - [ ] owlkaline https://github.com/Owlkaline/JobHuntingGame (need event handling fixes) |
