started process of night time exclusions.
This commit is contained in:
@@ -11,10 +11,11 @@
|
||||
[play-clj.ui :refer :all]
|
||||
[play-clj.utils :refer :all]
|
||||
[play-clj.g2d :refer :all]))
|
||||
|
||||
|
||||
(defn remove-lock [entities]
|
||||
(-> entities
|
||||
(update-in [:room :interactions]
|
||||
(fn [i] (remove #(= :lock (:id %)) i)))
|
||||
(utils/remove-interaction :lock)
|
||||
(assoc-in [:room :collision] (get-in entities [:room :collision-free]))))
|
||||
|
||||
(defn open-lock [entities]
|
||||
|
||||
Reference in New Issue
Block a user