mirror of
https://github.com/SK8-ENGINE/skate-3-rust-engine.git
synced 2026-11-06 21:16:32 +00:00
Audio Example
A small audio mod (off by default: enable it in the mod menu). Everything it plays is self-made
(synthesize.py regenerates the WAVs); no game audio is copied.
audio.json(the content overlay, active only while the mod runs): adds a sample bankEXAMPLE_chime(three bell tones), a location setexample_chimesthat plays it every 4–8 s from a random direction, and a box region on theformat-demomap (maps/format-demo.skate) that selects the set. Load the format-demo map to hear it.main.lua: subscribes to the game's audio events taggedpopandland, counts them on the HUD and layers a short click on each pop (setting "Click on pops"). The game's own pop sound is not changed.
Check it before shipping changes:
cargo run -p skate-mods --example check_mod -- sdk/examples/audio-example
cargo run -p skate-mods --example check_mod -- sdk/examples/audio-example --install <your assets folder>
The second form also lists entries the install does not have and conflicts with other audio mods
(--with <package>). See docs/hails-additions/16-audio-modding.md for every section of
audio.json, the runtime API and the limits.