fairy godfather magic
This commit is contained in:
@@ -198,6 +198,7 @@
|
||||
:fairy-godfather "Behold!")
|
||||
(particle-effect! (get-in @entities [:room :entities :magic]) :reset)
|
||||
(particle-effect! (get-in @entities [:room :entities :magic]) :start)
|
||||
(actions/play-animation entities :fairy-godfather :magic)
|
||||
(sound! (utils/load-sound "dream/appear.ogg") :play (utils/current-sound-volume))
|
||||
(fade-in-tools entities)
|
||||
|
||||
@@ -340,7 +341,8 @@
|
||||
|
||||
(defn make [screen]
|
||||
(let [fairy-godfather-anim (utils/make-anim "dream/fairy-godfather.png" [63 77] 0.15 [0 1 2 3 2 1 0 1 4 3 2 1])
|
||||
fairy-godfather-talk-anim (utils/make-anim "dream/fairy-godfather.png" [63 77] 0.15 [5 6 7 8 7 6])]
|
||||
fairy-godfather-talk-anim (utils/make-anim "dream/fairy-godfather.png" [63 77] 0.15 [5 6 7 8 7 6])
|
||||
fairy-godfather-magic-anim (utils/make-anim "dream/fairy-godfather-magic.png" [100 77] 0.15 [0 1 2 3 4 4 4 4 4 4 4 4 4 3 2 1 0])]
|
||||
(rooms/make :music {:intro :wind :day :dream}
|
||||
:interactions {:pit {:box [54 0 219 36]
|
||||
:script (actions/get-script entities
|
||||
@@ -467,10 +469,14 @@
|
||||
:scaled true
|
||||
:left {:walk fairy-godfather-anim
|
||||
:talk fairy-godfather-talk-anim
|
||||
:stand fairy-godfather-anim}
|
||||
:stand fairy-godfather-anim
|
||||
:magic fairy-godfather-magic-anim}
|
||||
:right {:walk (utils/flip fairy-godfather-anim)
|
||||
:stand (utils/flip fairy-godfather-anim)
|
||||
:talk (utils/flip fairy-godfather-talk-anim)}
|
||||
:talk (utils/flip fairy-godfather-talk-anim)
|
||||
:magic fairy-godfather-magic-anim}
|
||||
:anim-merges {fairy-godfather-magic-anim {:origin-x 59}
|
||||
:default {:origin-x 31}}
|
||||
:facing :left
|
||||
:update-fn (fn [s es e] (if (:path e)
|
||||
(utils/update-path-location 0.2 s es e)
|
||||
|
||||
Reference in New Issue
Block a user