Noah Petherbridge
27896a9253
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. |
||
---|---|---|
.. | ||
blue-closed.png | ||
blue-key.png | ||
blue-left.png | ||
blue-right.png | ||
blue1.png | ||
blue2.png | ||
build.sh | ||
colored-door.js | ||
electric-door.js | ||
electric.gif | ||
electric1.png | ||
electric2.png | ||
electric3.png | ||
electric4.png | ||
green-closed.png | ||
green-key.png | ||
green-left.png | ||
green-right.png | ||
green1.png | ||
green2.png | ||
keys.js | ||
locked-door.js | ||
README.md | ||
red-closed.png | ||
red-key.png | ||
red-left.png | ||
red-right.png | ||
red1.png | ||
red2.png | ||
yellow-closed.png | ||
yellow-key.png | ||
yellow-left.png | ||
yellow-right.png | ||
yellow1.png | ||
yellow2.png |
Button Doodads
doodad convert -t "Red Door" red1.png red2.png red-door.doodad
doodad convert -t "Blue Door" blue1.png blue2.png blue-door.doodad
doodad convert -t "Green Door" green1.png green2.png green-door.doodad
doodad convert -t "Yellow Door" yellow1.png yellow2.png yellow-door.doodad
doodad convert -t "Red Key" red-key.png red-key.doodad
doodad convert -t "Blue Key" blue-key.png blue-key.doodad
doodad convert -t "Green Key" green-key.png green-key.doodad
doodad convert -t "Yellow Key" yellow-key.png yellow-key.doodad
doodad convert -t "Electric Door" electric{1,2,3,4}.png electric-door.doodad