Log inGet started
World

Rice and Shine: A Sengoku Assassination Sandbox

Branchmain
Branchesmain
Commit471737b433

README.md

audio

Rice and Shine's sound, run on every peer for that peer's own player. RS.tick (riceAndShine.game) calls Audio.tick(dt) every frame; the work inside runs at 4 Hz and only fades voices per frame.

  • Festival (Obon night): bon-odori taiko and shinobue heard from the yagura (spatial), crowd murmur along the main and market streets and round the dance ring (spatial emitters), river water along the town's river (emitters read from the town plan), night insects that rise in quiet lanes as the crowd falls away; the town kit's distant matsuri bed dips in the lanes.
  • Morning Drill (dawn): the town kit's dawn bed (birds, roosters, breeze) as soundstage's base ambience, wind in the bamboo grove (spatial), distant drill shouts from beyond the walls every 9-19 s.
  • Player: soundstage footsteps on the town kit's earth/tatami surfaces (cadence follows speed), softer when crouched, cloth rustle on crouch and on steps.
  • Music: a low tension layer that rises with disguiseKit heat (being watched) and the stealthKit alert, and falls back gently; a resolve cue when the phase becomes debrief. soundstage's stock music (which stealthKit's Director drives) is kept silent in levels. The kill's ink sting stays assassinationKit's.
  • Settings: Audio.applySettings({ master, music, effects }) sets the engine mixer (effects covers sfx, ui, ambience, voice). riceAndShine.settings calls it.
  • UI: Audio.ui("open" | "close" | "click" | "hover") plays paper sounds.
  • Audio.report() reads back what plays, for checks.

Clips live in riceAndShine.sounds (generated with the engine's audio generation), plus soundstage.beds.ss_bed_night and sengokuTownKit's sk_bed_town_dawn. Live voices are kept in riceAndShine.audioState so an edit while playing does not leak them.