Log inGet started
World

Raise the Roof: Build Mode, Snapping and Base Pieces Kit

README.md

buildPlaceKit.sfx

The kit's sound effects: place (wood/metal), refuse, demolish, select, door open/close and a crackling fire loop, all generated clips under sounds/. Build-mode code calls Sfx.play(name, pos?, { volume?, pitch? }) for one-shots (2D without pos, spatial at pos), with ±6% pitch variation and a 40 ms per-name cooldown so bursts never stack. Sfx.loop("fireLoop", entity) returns a handle for a looping spatial source that follows the entity, Sfx.stop(handle) ends it, and Sfx.volume(v) sets the kit's own mixer channel (buildPlaceKit). Silent in edit mode and safe to require on peers without audio.