From 63c316de64e959096d64d2579325fc60b8346f50 Mon Sep 17 00:00:00 2001 From: oakes Date: Sun, 25 May 2014 14:30:37 -0400 Subject: [PATCH] Improve spacing --- TUTORIAL.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/TUTORIAL.md b/TUTORIAL.md index 1761c1c..92b98b6 100644 --- a/TUTORIAL.md +++ b/TUTORIAL.md @@ -159,6 +159,7 @@ Now we can update our `:on-key-down` and `:on-touch-down` functions to move the (move (first entities) :right) (= (:key screen) (key-code :dpad-left)) (move (first entities) :left))) + :on-touch-down (fn [screen entities] (let [pos (input->screen screen (:input-x screen) (:input-y screen))] @@ -321,6 +322,7 @@ You may want to display two different screens at once. This is useful in situati (assoc (label "0" (color :white)) :id :fps :x 5)) + :on-render (fn [screen entities] (->> (for [entity entities] @@ -328,6 +330,7 @@ You may want to display two different screens at once. This is useful in situati :fps (doto entity (label! :set-text (str (game :fps)))) entity)) (render! screen))) + :on-resize (fn [screen entities] (height! screen 300)))