Log inGet started
Package

ArenaSound.component

README.md

ArenaSound

All of BATTLEBOX's sound, on the scene's Sound entity. It only listens to game.rules (events via Rules.on("*"), plus Rules.bot(name).rpm and bot positions every frame) and builds its emitters at play only, as temporary entities, so edit mode stays quiet.

  • Crowd: crowd_bed loops all match (Ambient); it swells after hits and hazards, crowd_swell plays on big hits and crowd_roar + library.crowd_cheer on KO / decision.
  • Music: fight_track (broadcast hard rock, loops) in fight / free, ducked under the announcer and faded on KO; title_sting on title.
  • Weapons and drive: disc_whine follows HAVOC and bar_whoosh follows RIPTIDE as spatial loops whose pitch and volume track rpm / maxRpm; motor_hum per bot tracks its ground speed.
  • Hits: on hit a metal clang (library.ss_impacts_metal_1..3, bcd_steel_clang) + hit_grind (+ hit_crunch above ~35% damage), scaled by damage/14, at the event point.
  • Hazards: hazard plays saw_screech (floorSaw), killsaw_rasp (killSaw), screwpit_grind (screwPit, rate-limited), hit_crunch (pulverizer hit); pulverize plays pulverizer_slam at the hammer.
  • Announcer: ann_3/2/1 on the countdown ticks, ann_fight on fight, ann_knockout then ann_<bot>_wins on ko, ann_decision then the winner on decision, ann_welcome on title. ko_bell marks the end of a fight; ui_confirm plays on leaving the title, a rematch and reset.

Clips live in sound/clips/ (generated with audio_gen). Levels are fields (musicLevel, crowdLevel, spinLevel, …), with the game's values as defaults.