blob: 222b74d5149c5d16c841e0f31c1e2e01a5140376 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
export function js_update_lifetotal(lives) {
window.parent.postMessage({op: "lifetotal", lives: 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,
});
}
}
|