BATTLEBOX: Robot Combat Arena
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_bedloops all match (Ambient); it swells after hits and hazards,crowd_swellplays on big hits andcrowd_roar+library.crowd_cheeron KO / decision. - Music:
fight_track(broadcast hard rock, loops) infight/free, ducked under the announcer and faded on KO;title_stingontitle. - Weapons and drive:
disc_whinefollows HAVOC andbar_whooshfollows RIPTIDE as spatial loops whose pitch and volume trackrpm / maxRpm;motor_humper bot tracks its ground speed. - Hits: on
hita metal clang (library.ss_impacts_metal_1..3,bcd_steel_clang) +hit_grind(+hit_crunchabove ~35% damage), scaled by damage/14, at the eventpoint. - Hazards:
hazardplayssaw_screech(floorSaw),killsaw_rasp(killSaw),screwpit_grind(screwPit, rate-limited),hit_crunch(pulverizer hit);pulverizeplayspulverizer_slamat the hammer. - Announcer:
ann_3/2/1on the countdown ticks,ann_fightonfight,ann_knockoutthenann_<bot>_winsonko,ann_decisionthen the winner ondecision,ann_welcomeontitle.ko_bellmarks the end of a fight;ui_confirmplays on leaving the title, a rematch andreset.
Clips live in sound/clips/ (generated with audio_gen). Levels are fields (musicLevel, crowdLevel, spinLevel, …), with the game's values as defaults.