first puzzle complete
This commit is contained in:
@@ -82,7 +82,7 @@
|
||||
:on-touch-down (fn [screen [entities]]
|
||||
(let [{:keys [x y]} (input->screen screen {:x (:input-x screen) :y (:input-y screen)})]
|
||||
(when (seq entities)
|
||||
(when (< y (* 30 (count entities)))
|
||||
(when (< y (* 30 (dec (count entities))))
|
||||
((get-in entities [:state :callback]) (int (/ y 30)))
|
||||
{}))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user