Log inGet started
World

Slag Saint

Branchmain
Branchesmain
Commit5e87281b36

README.md

Score

Everything you hear in SLAG SAINT, and the mix it sits in. BattleBoot attaches it to audio_root.

Buses

Seven sources, spawned as children of audio_root on awake():

entitytypewhat goes on it
audio_musicMusicthe phase score, one streaming track at a time
audio_bed_a / audio_bed_bAmbientthe room, crossfading between two beds
audio_voiceSoundEffectevery spoken line, non-positional so it is always intelligible
audio_uiSoundEffectinterface and the big flow stings
audio_worldSoundEffect, spatialimpacts, moved to the point they happened at
audio_saintSoundEffect, spatialthe saint's body, tracking boss_root

Asking for a noise

No other slice decides how loud anything is:

Rules.sfx("parry_ring")
Rules.sfx("hit_bronze", { at = point, gain = 0.8 })
Rules.say("saint_greet", "THE SLAG SAINT", "WARD. YOU ARE LATE.")

Every key in Rules.SFX_KEYS resolves, plus the beds, the three score tracks and the fourteen voiced lines. A key with no clip is a no-op, never an error.

The score

One track per phase, crossfaded on phase:changed (out over 1.6s, in over 2.4s). mode:changed decides whether the score plays at all — the title and the descent run on ambience alone, and the score stops for a victory or a death so the last line has room.

Ambience

Two Ambient sources crossfade over 3.2s, so the room changes with the grade: amb_threshold at the title, amb_basin_cold for the first two phases, amb_basin_fire once the floor opens. Each bed is a seamless loop — the tail is crossfaded back over the head at bake time — and each is stored as uncompressed PCM, because a codec that drops the first few milliseconds puts a click in every lap.

Weight

Footfalls are not events another slice sends. Score measures how far boss_root and the player's body actually moved and fires a step every stride, so the sound follows the body rather than an animation guess. The saint's stride shortens as its phase speed rises.

Ducking

A spoken line drops everything else to 34% for as long as the line lasts, then lets it back up. Nothing else in the game touches those levels.

Methods

  • :status() — clips registered, missing keys, music and bed state, bus health
  • :preview(key) — play one sound by hand
  • :previewLine(key) — speak one line by hand