nightime bug fixed.
This commit is contained in:
@@ -14,11 +14,11 @@
|
||||
[play-clj.g2d :refer :all]))
|
||||
|
||||
(defn go-to-jail [entities]
|
||||
(actions/update-state entities #(assoc % :time :night))
|
||||
|
||||
(actions/update-state entities #(assoc % :chest-contents (concat (remove #{:key :ladder} (:inventory %)) (:chest-contents %))))
|
||||
(actions/update-state entities #(assoc % :inventory []))
|
||||
(actions/update-state entities #(assoc % :opened-bars? false))
|
||||
(actions/transition-background entities :inside-jail [130 85]))
|
||||
(actions/transition-background entities :inside-jail [130 85] :between #(assoc-in %2 [:state :time] :night)))
|
||||
|
||||
(defn make-wizard [screen wizard-spec]
|
||||
(let [wizard-sheet (texture! (texture "wizard/talk.png") :split 20 46)
|
||||
|
||||
Reference in New Issue
Block a user