Document debug console in help manual and README

This commit is contained in:
MeatSlicer Developer committed 2026-07-31 09:30:26 +10:00
1 parent 3f76998fab
commit a7e48a0465
6 files changed
+42 -33

No files matched your search

+4
View File
@@ -105,6 +105,10 @@ function drawHelpControls(ctx, px, py) {
'ENTER / SPACE / CLICK — START RUN · R / ENTER — RESTART AFTER DEATH',
'PICKUPS ARE COLLECTED BY WALKING OVER THEM — NO INTERACT KEY',
] },
{ head: 'DEBUG CONSOLE (DEV BUILD)', lines: [
'` / ~ — CHEAT & INSPECTION PANEL · ENABLE WITH --dev OR ?dev=1',
'SET STATS / ITEMS / PRESSURE, SPAWN ENEMIES & BOSSES — SEE docs/dev-debug.md',
] },
], HELP_PANEL.w - 80);
}
+1 -1
View File
@@ -111,7 +111,7 @@ const SfxBank = {
if (this.buffers.has(name) || this.pending.has(name) || this.failed.has(name)) return;
const file = this.FILES[name];
if (!file || !this.ctx || typeof fetch !== 'function') return;
const job = fetch('/assets/sfx/' + encodeURIComponent(file) + '?v=49')
const job = fetch('/assets/sfx/' + encodeURIComponent(file) + '?v=51')
.then(r => { if (!r.ok) throw new Error('HTTP ' + r.status); return r.arrayBuffer(); })
.then(bytes => this.ctx.decodeAudioData(bytes))
.then(buffer => this.buffers.set(name, this.trim(buffer)))
+1 -1
View File
@@ -86,7 +86,7 @@ const Sprites = {
const img = new Image();
img.onload = () => { this.imgs[name] = img; if (--pending === 0) G.imagesLoaded = true; };
img.onerror = () => { if (--pending === 0) G.imagesLoaded = true; };
img.src = 'assets/' + name + '.png?v=49';
img.src = 'assets/' + name + '.png?v=51';
}
},