doodle/pkg/scripting
Noah 27896a9253 Add Initial Sound Effects
Adds support for sound effects in Doodle and configures some for various
doodads to start out with:

* Buttons and Switches: "Clicked down" and "clicked up" sounds.
* Colored Doors: an "unlocked" sound and a "door opened" sound.
* Electric Door: sci-fi sounds when opening and closing.
* Keys: sound effect for collecting keys.

JavaScript API for Doodads adds a global function `Sound.Play(filename)`
to play sounds. All sounds in the `rtp/sfx/` folder are pre-loaded on
startup for efficient use in the app. Otherwise sounds are lazy-loaded
on first playback.
2020-05-22 20:07:48 -07:00
..
events.go Fix Two-State Blocks & Collision Detection 2020-01-02 17:58:22 -08:00
js_api.go Add Initial Sound Effects 2020-05-22 20:07:48 -07:00
pubsub.go Fix Two-State Blocks & Collision Detection 2020-01-02 17:58:22 -08:00
scripting.go Tighten Doodad JavaScript API, User Documentation 2020-04-21 23:50:45 -07:00
supervisor_events.go Level Exit Doodad 2019-07-02 15:24:46 -07:00
timers.go Script Timers, Multiple Doodad Frames 2019-04-18 18:15:05 -07:00
vm.go Tighten Doodad JavaScript API, User Documentation 2020-04-21 23:50:45 -07:00