Log inGet started
Package

GameAudio.component

Newest version

README.md

GameAudio

The sound of the Combing Vault: one component that owns every voice in THE LAST STRAW.

Attaches to the GameAudio director entity the scene spawns. It needs nothing from a sibling component: it reads game.shared.game's bus and GAME.state.attunement, and it plays through the AudioListener the player camera carries, so nothing else has to cue a sound.

What plays, and when

VoiceSignal / stateWhere it is heard
cathedral bed, loopingalways, from the moment play begins2D, under everything
attunement toneGAME.state.attunement2D, volume and pitch rise with it; silent at 0
gauntlet gripneedle.heldspatial, at the needle
steel scrapeneedle.held, 60 ms laterspatial, at the needle
needle ringneedle.pulledspatial, at the needle
needle clatterneedle.droppedspatial, on the floor by the bale
Codex whispercodex.unlockedspatial, where the witness needle was
choir-and-bell stingstraw.found2D, and the bed steps back for it
begin / click / hoverphase, ui.begin, ui.click, ui.hover2D, small and dry

The UI slice may emit ui.hover / ui.click / ui.begin for its own buttons; when it does, the sound comes from here. Until it does, the hover tick is driven by watching the pointer: while a menu phase is up, moving onto a different widget plays it (debounced, and only over menus).

Mix

The bed is deliberately low, the tone is unmistakeable at attunement 1, and every one-shot is attenuated by how many are already sounding. A loud event ducks the bed rather than raising the voice. Nothing here touches the master level or a channel level, so a settings screen that turns the mix down stays in charge.

Slots

Every cue is a generated .soundClip under game/audio/. The bed, the tone and each one-shot are real generated clips, not placeholders.