small tweaks.
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
[play-clj.g2d :refer :all])
|
||||
(:import [com.badlogic.gdx.graphics Color]))
|
||||
|
||||
(defn go-to-jail [entities]
|
||||
(defn go-to-jail [entities & [time]]
|
||||
|
||||
(actions/update-state entities #(assoc % :chest-contents (concat (remove #{:key :ladder} (:inventory %)) (:chest-contents %))))
|
||||
(actions/update-state entities #(assoc % :inventory []))
|
||||
@@ -22,7 +22,8 @@
|
||||
(actions/transition-background entities :inside-jail [130 85] :between (fn [s e]
|
||||
(-> e
|
||||
(assoc-in [:state :time] :night)
|
||||
(update-in [:room :entities :ego] #(actions/start-animation s % :crawl-stand)))))
|
||||
(update-in [:room :entities :ego] #(actions/start-animation s % :crawl-stand))))
|
||||
:time time)
|
||||
(actions/play-animation entities :ego :standup))
|
||||
|
||||
(defn make-wizard [screen wizard-spec]
|
||||
|
||||
Reference in New Issue
Block a user