Add back the calls to move
This commit is contained in:
@@ -163,13 +163,13 @@ Now we can update our `:on-key-down` and `:on-touch-down` functions to move the
|
|||||||
(fn [screen entities]
|
(fn [screen entities]
|
||||||
(cond
|
(cond
|
||||||
(> (game :point-y) (* (game :height) (/ 2 3)))
|
(> (game :point-y) (* (game :height) (/ 2 3)))
|
||||||
(println "up")
|
(move (first entities) :up)
|
||||||
(< (game :point-y) (/ (game :height) 3))
|
(< (game :point-y) (/ (game :height) 3))
|
||||||
(println "down")
|
(move (first entities) :down)
|
||||||
(> (game :point-x) (* (game :width) (/ 2 3)))
|
(> (game :point-x) (* (game :width) (/ 2 3)))
|
||||||
(println "right")
|
(move (first entities) :right)
|
||||||
(< (game :point-x) (/ (game :width) 3))
|
(< (game :point-x) (/ (game :width) 3))
|
||||||
(println "left")))
|
(move (first entities) :left)))
|
||||||
```
|
```
|
||||||
|
|
||||||
## Camera
|
## Camera
|
||||||
|
|||||||
Reference in New Issue
Block a user