Score
All music and SFX. Attached to `Mounts/mount_audio` by the scene entrypoint at play start; spawns its own temporary Audio bus children. Publishes `R.services.audio = { sfx(name, pos?), music(name), ambience(on), stop(), clips() }`. Two crossfaded music buses (title, town, arena,…
game.audio.Score
All music and SFX. Attached to Mounts/mount_audio by the scene entrypoint at play start; spawns its own temporary Audio bus children.
Publishes R.services.audio = { sfx(name, pos?), music(name), ambience(on), stop(), clips() }. Two crossfaded music buses (title, town, arena, boss, victory),
an arena crowd ambience bed, and one-shot SFX (swing, heavy_swing, hit_flesh, hit_metal, block, parry, roll, footstep_sand, lion_roar, crowd_cheer, crowd_boo,
slave_shout, minotaur_roar, minotaur_slam, coin, ui_click, level_up) from game/audio/sfx and game/audio/music. Also scores the game itself from the rules event bus.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2game.audio.Score — every sound of Swords and Sandals NG. Attached to Mounts/mount_audio by the scene entrypoint at play start. Publishes R.services.audio = { sfx(name, pos?), music(name), ambience(on), stop(), clips() }. * Music: two looping buses crossfaded (title, town, arena, boss, victory). * Ambience: an arena crowd bed that swells while the player is in the arena. * SFX: one-shots layered on an sfx bus, with per-sound mix level, pitch jitter and distance falloff from the player when a position is given. It also scores the game by itself from the rules bus: title/zone/bout music, crowd cheers on kills and wins, boos on defeat, coin and level-up stingers. Every clip lives under game/audio/sfx and game/audio/music (generated with audio_gen). A missing clip makes its call a silent no-op, never an error.
loadClips( ) → void
Literal identities so the clips travel with the component.
now( ) → number return os
spawnBus(name: string, clip: any, fields: { [string]: any }) → void
| arg | type | description |
|---|---|---|
| name | string | |
| clip | any | |
| fields | { [string]: any } |
vecOf(p: any) → void
| arg | type | description |
|---|---|---|
| p | any |
sfx(name: string, pos: any?) → void
| arg | type | description |
|---|---|---|
| name | string | |
| pos | any? |
music(name: string?) → void
| arg | type | description |
|---|---|---|
| name | string? |
ambience(on: boolean) → void
| arg | type | description |
|---|---|---|
| on | boolean |
zoneMusic( ) → void
inArena( ) → boolean
awake( ) → void
stop( ) → void
clips( ) → void
update(dt: number) → void
| arg | type | description |
|---|---|---|
| dt | number |
onDestroy( ) → void
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ 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".
Scoped to this part · feeds back into the world's score.