refactored sounds so they're never dynamically loaded.

This commit is contained in:
Bryce Covert
2015-10-29 20:04:08 -07:00
parent 78a4ddfce6
commit 614156245a
11 changed files with 57 additions and 33 deletions

View File

@@ -225,6 +225,9 @@
candle (utils/make-anim "inside-jail/candle.png" [20 25] 0.1 (range 4))
candle-aura (utils/make-anim "inside-house/candle-aura.png" [27 27] 0.2 [0 1 2 3 2 1])]
(rooms/make :music :inside-antique
:sounds {
:squeek (utils/load-sound "inside-jail/squeak.ogg")
}
:interactions {
:lock {:box [172 102 190 124]
:script (actions/get-script entities
@@ -332,7 +335,7 @@
(update-in [:room :entities :ego] #(actions/start-animation screen % :stand)))]
((actions/get-script entities
(actions/stop-walking entities :ego)
(actions/play-sound entities "inside-jail/squeak.ogg" 0.15)
(actions/play-sound entities :squeek 0.15)
(actions/do-dialogue entities
:ego "Oops!"
:warden "Hey! What are you doing?"