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

@@ -33,6 +33,7 @@
wizard-talk-angry (utils/make-anim "wizard/talk-angry.png" [20 50] 0.2 [0 2 0 2 1 2 0 3 0 2 0 1 0 2])
wizard-magic-hands (utils/make-anim "wizard/magic-hands.png" [20 50] 0.2 (range 2))
wizard-disappear (utils/make-anim "wizard/disappear.png" [20 46] 0.075 (range 19))
disappear-left (utils/flip wizard-disappear)
wizard-talk (animation 0.2 (for [i [0 2 0 2 1 2 0 3 0 2 0 1 0 2]]
(aget wizard-sheet 0 i)))
wizard-talk-left (utils/flip wizard-talk)
@@ -41,7 +42,7 @@
(actions/start-animation screen (merge (assoc (animation->texture screen wizard-stand)
:left {:talk wizard-talk-left
:stand wizard-stand-left
:disappear (utils/flip wizard-disappear)
:disappear disappear-left
:magic-hands (utils/flip wizard-magic-hands)
:talk-angry wizard-talk-angry-left
}
@@ -59,7 +60,10 @@
wizard-talk-left {11 [:blink 0.15 0.7]
4 [:blink 0.15 0.7]}
wizard-talk-angry-left {11 [:blink 0.15 0.7]
4 [:blink 0.15 0.7]}}
4 [:blink 0.15 0.7]}
wizard-disappear {1 [:disappear 0.7]}
disappear-left {1 [:disappear 0.7]}
}
:night-profile :sprite
:origin-x 0
:origin-y 0