meaningful progress on showing action for mobile.

This commit is contained in:
Bryce Covert
2016-10-16 13:49:11 -07:00
parent 7347fdbfbf
commit 520143e145
3 changed files with 53 additions and 27 deletions

View File

@@ -30,8 +30,8 @@
entity)
(def ui-scale 1.75)
(def mobile? (= 1.75 ui-scale))
(def ui-scale 1.5)
(def mobile? (= 1.5 ui-scale))
(defn clear-stage [{:keys [^Stage renderer]}]
(.clear renderer))
@@ -408,7 +408,6 @@
object-y (or (:y e) (when (actor? e ) (.getY ^Actor (:object e))) 0)
object-width (or (:width e) (when (actor? e ) (.getWidth ^Actor (:object e))) 0)
object-height (or (:height e) (when (actor? e ) (.getHeight ^Actor (:object e))) 0)]
(println object-x object-y object-width object-height)
(and (:object e)
(< object-x x (+ object-x object-width))