0.2.6-dev: PR #416 by Cromemadnd — every landing of a round start is heard: prep landing sounds take a voice of their own pool (LAND_VOICES 3, the oldest fading out over 30 ms) instead of being dropped by the battle limiter, which let only the first two of a chain sound since 192 of 210 operators share the 1.41 s b_char_set (Grok's review); per-piece cooldown, SFX volume and mute kept, the battle sounds' limiting unchanged, the generic files fetched ahead when a match view comes up; DESIGN §31.8; golden: unchanged

This commit is contained in:
sganggs committed 2026-10-13 05:46:29 +08:00
1 parent a3da5c2775
commit 0ceb6641ec
7 files changed
+379 -64

No files matched your search

+3
View File
@@ -336,6 +336,9 @@ export async function createFieldView(host, options = {}) {
loadLevel: () => loadLevel,
surfaceLayer: (row) => tiles.surfaceLayer(row),
};
// the prep landings' generic sounds ahead of the first round start (audio.js warmLandings: a download would bunch the
// replay's first landings together); a wish kept until the first gesture / audible SFX
try { ctx.audio?.warmLandings?.(); } catch { /* the sound is optional */ }
const tiles = new TileField({ ground: layers.ground, overlay: layers.overlay, props: layers.units, anim: layers.anim });
setupCleanup.push(() => tiles.destroy());
const fx = new FxSystem({