made it so you can make the spell componoent.

This commit is contained in:
2014-12-28 12:54:38 -08:00
parent 262291d6ec
commit 527c6eefe2
6 changed files with 37 additions and 9 deletions

View File

@@ -8,7 +8,7 @@
width (or width (.getRegionWidth region))
height (or height (.getRegionHeight region))]
((zone/box entity-x entity-y (+ entity-x (* width (or 1 scale-x))) (+ entity-y (* height (or scale-y 1)))) x y)))}
(when (:script entity)
(when (or (:scripts entity) (:script entity))
{:get-script (fn [cursor [x y]]
(if (= :main cursor)
(:script entity)