talking animation.
This commit is contained in:
@@ -59,7 +59,8 @@
|
||||
(defn talk [target-id text]
|
||||
(fn [screen entities]
|
||||
(run! dialogue/talking-screen :on-talk :text text
|
||||
:x (get-in entities [target-id :x]) :y (+ (get-in entities [target-id :y]) 25)
|
||||
:x (get-in entities [target-id :x]) :y (+ (get-in entities [target-id :y]) 35)
|
||||
:target-id target-id)
|
||||
(-> entities
|
||||
(update-in [target-id :actions] rest))))
|
||||
(update-in [target-id :actions] rest)
|
||||
(assoc-in [target-id :anim] (get-in entities [target-id :talk])))))
|
||||
|
||||
Reference in New Issue
Block a user