Stage 3.9 — Procedural Audio - #17
Open
QemmHD wants to merge 2 commits into
Open
Conversation
100% synthesized WebAudio (no asset files), pure presentation (read-only bus listener; never touches the sim). Typecheck + build green, smoke test clean. Sound: combat thud, tonal metallic door slide/clang, typed event cues, UI confirm/deny, a sine ambient bed that swells with riot pressure (near-silent when calm), and a brief alarm warble on lockdown onset (not an endless klaxon). Topbar mute toggle, persisted to localStorage; AudioContext unlocks on first tap. Adversarial-review fixes: - Re-prime door state on Load/New-Run (no stray clang). - Topbar chips/mute-button shrink+wrap on small phones (no overflow at lockdown). - actionResult plays confirm on success, soft 'no' on failure. - Clamp persisted volume; detach unlock listeners after first use; drop fragile glideTo=0. User feedback addressed: noise-based door/ambient sounds (read as "static") reworked to tonal synthesis; long repetitive alarm klaxon -> brief onset warble. Version -> v3.9.0-audio; CHANGELOG 3.9 entry + README updates. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Per playtest feedback ("i like a little long, just the noise was bad"): the alarm
is sustained again while a lockdown/alarm is active, but as a SMOOTH triangle
hi-lo siren with gentle tremolo + soft fade in/out — not the harsh square klaxon
and not the too-brief onset warble.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The game's first sound — 100% synthesized WebAudio (no asset files). Pure presentation:
AudioSystemonly listens to theEventBus+ reads a per-frame tension snapshot; it never touches the simulation.Sound
localStorage; AudioContext unlocks on first tap (mobile autoplay-safe).Invariants
RenderSync+AudioSystemnever write sim state. Save format unchanged (v12).Verification
npm run typecheck+npm run buildgreen (49 modules); headless-Chrome smoke test green (0 console/page errors, self-test clean, mute button renders).What's next
Toward a modern Hard Time — candidate next stages: settings menu (volume slider + difficulty), world expansion, or a sentence/notoriety meta-loop.
🤖 Generated with Claude Code