Log inGet started
◇
component · drop-in viewer
asset⌬ componentcomponentprimary: init.luau·originates fromworld af925970-0…

GameAudio

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

by◐Deata·posted 1mo ago
What it does

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.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

game.parts.GameAudio — the sound of the Combing Vault. One component owns every voice in THE LAST STRAW. It reads nothing but game.shared.game: the bus tells it what happened and GAME.state.attunement tells it how close the straw is. Nothing here decides what is grabbed, which screen is up, or what a fragment says — it only answers. The layout follows where the sound is: the bed 2D, looping, always under everything — the room itself the tone 2D, follows state.attunement — the air answering the search one-shots spatial, placed at the needle that made them the sting a single 2D voice, and the bed steps back for it Mix staging is deliberate. Every one-shot is attenuated by how many are already sounding, a loud event ducks the bed, and the bed sits under everything else, so three needles landing at once stay in the room rather than on top of the mix. Nothing here pushes the master level.

Audio

clamp01(v: ?) → void

argtypedescription
v?

host(name: ?, props: ?) → void

Spawn an Audio source under this component's own entity, so it is torn down with the director entity and never orphaned in the scene.

argtypedescription
name?
props?

seatOf(index: ?) → void

The world seat of a needle, from the index the bus carries: the inverse of GAME.needleIndex, layer being the innermost stride and bale the outermost.

argtypedescription
index?

sounding( ) → void

lifetimeOf(c: ?) → void

argtypedescription
c?

play(key: ?, x: ?, y: ?, z: ?) → void

One voice. `x` given means the sound is somewhere in the vault; without it the sound happens to the player and is heard centred.

argtypedescription
key?
x?
y?
z?

duckBy(amount: ?) → void

argtypedescription
amount?

onHeld(index: ?) → void

The needle has been taken in hand: the gauntlet closes, then steel drags out of the packed mass. Both sit where the needle is, in front of the eye.

argtypedescription
index?

onPulled(index: ?) → void

It came free of the bale: a short steel ring, before it falls.

argtypedescription
index?

onDropped(index: ?) → void

It is on the floor. The resting place belongs to the needlefield; here it only has to be near enough to hear from the right side of the aisle, so the needle's own bale face plus a deterministic scatter out into the walkway.

argtypedescription
index?

onFragment(fragment: ?) → void

A witness needle gave up its fragment: the whisper comes from where it was in the pile, so it is heard past the shoulder of the bale, not in the ear.

argtypedescription
fragment?

onStraw( ) → void

The straw: the one voice that is not in the world. The choir and the bell are the vault answering, so it is heard centred, and the bed gets out of its way for the length of it.

onPhase(phase: ?) → void

argtypedescription
phase?

onHover( ) → void

The UI slice owns its screens and may cue these; when it does, the sound comes from here rather than from an Audio component of its own.

onUiClick( ) → void

subscribe( ) → void

watchHover(dt: ?) → void

Modest hover support for menus. The UI slice may emit `ui.hover` itself; until it does, a tick plays whenever the pointer moves onto a different widget while a menu is up. Debounced, and only over menus, so it stays a series of small ticks rather than a rattle as the pointer crosses a screen.

argtypedescription
dt?

drive(dt: ?) → void

argtypedescription
dt?

wake( ) → void

clearStale( ) → void

A component that is reloaded — hot edit, a second start — must not leave a second bed playing behind the first, so anything this component spawned is cleared before it is rebuilt.

build( ) → void

Every clip is pinned by its own literal identity: the push checker refuses a computed asset name on a component, and a literal also records the dependency the world needs when it is imported somewhere else.

start( ) → void

update(dt: ?) → void

argtypedescription
dt?

onDestroy( ) → void

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.