Document v0.4.0 expansion

This commit is contained in:
MeatSlicer Developer committed 2026-07-30 22:47:39 +10:00
1 parent 74edcf5491
commit 3e603c349d
7 files changed
+79 -42

No files matched your search

+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=44')
const job = fetch('/assets/sfx/' + encodeURIComponent(file) + '?v=45')
.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=44';
img.src = 'assets/' + name + '.png?v=45';
}
},