refactored sounds so they're never dynamically loaded.
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
(begin [this screen entities]
|
||||
(particle-effect! (get-in entities [:room :entities :appear]) :reset)
|
||||
(particle-effect! (get-in entities [:room :entities :appear]) :start)
|
||||
(sound! (utils/load-sound "inside-house/disappear.ogg") :play (utils/current-sound-volume))
|
||||
(utils/play-sound! screen entities :disappear (constantly 0.7))
|
||||
(-> entities
|
||||
(assoc-in [:tweens :bloodclot-head-appear]
|
||||
(tween/tween :bloodclot-head-appear screen [:room :entities :bloodclot-head :opacity] 0.0 1.0 1.0 :ease tween/ease-in-quadratic))
|
||||
@@ -209,7 +209,6 @@
|
||||
:game-player "But I'm not much of a hero."
|
||||
:game-player "The knights of Remington have muscles the size of tree trunks."
|
||||
:game-player "But me...")
|
||||
(sound! (utils/load-sound "inside-castle/flex.ogg") :play (utils/current-sound-volume))
|
||||
(actions/play-animation entities :game-player :flex)
|
||||
(actions/do-dialogue entities :game-player "I'd never be able to prove my strength."))
|
||||
:choices actions/previous-choices}
|
||||
@@ -613,12 +612,14 @@
|
||||
:talk game-player-talk-up}
|
||||
:get-to-work game-player-get-to-work
|
||||
:pause-from-work game-player-pause-from-work
|
||||
:flex-sound (utils/load-sound "inside-castle/flex.ogg")
|
||||
:anim-sound-frames {game-player-stand-up {11 [:blink 0.3 1.1] }
|
||||
game-player-talk-up {11 [:blink 0.3 1.1]
|
||||
22 [:blink 0.3 1.1]
|
||||
24 [:blink 0.3 1.1]
|
||||
27 [:blink 0.3 1.1]}
|
||||
game-player-stand-down {1 [:writing-sound 0.07]}}
|
||||
game-player-stand-down {1 [:writing-sound 0.07]}
|
||||
game-player-flex {1 [:flex-sound 0.5]}}
|
||||
:flex game-player-flex)}
|
||||
:monocle (rooms/make-entity :monocle (assoc (animation->texture screen monocle)
|
||||
:x 209 :y 160 :baseline 240
|
||||
|
||||
Reference in New Issue
Block a user