making cat toys.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
(if (= :main cursor)
|
||||
(:script spec)
|
||||
(when-let [scripts (:scripts spec)]
|
||||
(scripts cursor))))}))
|
||||
(scripts (:value cursor)))))}))
|
||||
entities (into {} (for [[id entity] entities]
|
||||
[id (merge entity
|
||||
{:mouse-in? (fn [entities x y]
|
||||
@@ -22,7 +22,7 @@
|
||||
(if (= :main cursor)
|
||||
(:script entity)
|
||||
(when-let [scripts (:scripts entity)]
|
||||
(scripts cursor))))}))]))]
|
||||
(scripts (:value cursor)))))}))]))]
|
||||
(merge params {:collision (advent.pathfind/map-from-resource collision)
|
||||
:interactions interactions-as-list
|
||||
:entities entities})))
|
||||
|
||||
Reference in New Issue
Block a user