fighting bloodclot coming along
This commit is contained in:
@@ -161,7 +161,7 @@
|
||||
(can-skip? [this screen entities]
|
||||
false))))
|
||||
|
||||
(defn play-animation [entities target-id anim & {:keys [stop?]}]
|
||||
(defn play-animation [entities target-id anim & {:keys [stop? continue?]}]
|
||||
(run-action entities
|
||||
(begin [this screen entities]
|
||||
(update-in entities [:room :entities target-id] #(start-animation screen % anim) ))
|
||||
@@ -174,9 +174,11 @@
|
||||
(- (:total-time screen) (get-in entities [:room :entities target-id :anim-start]))))
|
||||
|
||||
(terminate [this screen entities]
|
||||
(if (or (nil? stop?) stop?)
|
||||
(stop screen entities target-id)
|
||||
(assoc-in entities [:room :entities target-id :anim] nil)))
|
||||
(if continue?
|
||||
entities
|
||||
(if (or (nil? stop?) stop?)
|
||||
(stop screen entities target-id)
|
||||
(assoc-in entities [:room :entities target-id :anim] nil))))
|
||||
(can-skip? [this screen entities]
|
||||
false)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user