about summary refs log tree commit diff stats
path: root/app.lua
diff options
context:
space:
mode:
Diffstat (limited to 'app.lua')
-rw-r--r--app.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/app.lua b/app.lua
index 62ecd38..212f755 100644
--- a/app.lua
+++ b/app.lua
@@ -32,14 +32,14 @@ function love.run()
       end
     end
 
-    -- draw before update to give it a chance to mutate state
+    dt = love.timer.step()
+    App.update(dt)
+
     love.graphics.origin()
     love.graphics.clear(love.graphics.getBackgroundColor())
     App.draw()
     love.graphics.present()
 
-    dt = love.timer.step()
-    App.update(dt)
     love.timer.sleep(0.001)
   end
 end