This commit is contained in:
2026-02-18 07:20:36 -08:00
parent 32b4b1e88a
commit 7882a92059

View File

@@ -7,14 +7,14 @@ import init, {
await init(); // load the wasm module
const botBuf = await fetch("bhop_marble_7cf33a64-7120-4514-b9fa-4fe29d9523d.qbot").then((r) => r.arrayBuffer());
const mapBuf = await fetch("bhop_marble_5692093612.snfm").then((r) => r.arrayBuffer());
const b = await fetch("bhop_marble_7cf33a64-7120-4514-b9fa-4fe29d9523d.qbot");
const m = await fetch("bhop_marble_5692093612.snfm");
const canvas = document.querySelector('canvas');
const canvas = document.querySelector("canvas");
const context = await setup(canvas);
const graphics = new Graphics(context, new Uint8Array(mapBuf));
const bot = new Bot(new Uint8Array(botBuf));
const graphics = new Graphics(context, new Uint8Array(await m.arrayBuffer()));
const bot = new Bot(new Uint8Array(await b.arrayBuffer()));
const playback = new PlaybackHead(0);
const startTime = performance.now();