Platform Playground: Moving, Crumbling and Bouncy Platforms Kit
README.md
platformsKit.sounds
The kit's sound effects, synthesised on each machine from small recipes, so the package carries no sound files. Twelve events (creak, crack, alarm, drop, back, boing, bloop, ding, grab, whoosh, gloop, blink), each voiced by the look it plays for: bouncy sines for cartoon, filtered synth for sci-fi, chime and stone for fantasy, 8-bit chip for pixel, metal for realistic, heavy machinery for industrial and wood for nature. The Platform component plays them; they sound in play mode only, quieter with distance from the camera.
local Sounds = require("platformsKit.sounds")
Sounds.play("boing", "cartoon", { x = 0, y = 1, z = 4 }) -- true when it played
Sounds.setVolume(0.4) -- 0 turns them off on this machine
PK.setVolume(v) / PK.volume() in platformsKit.api are the same switch.