about summary refs log tree commit diff stats
path: root/app.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-11-27 13:12:14 -0800
committerKartik K. Agaram <vc@akkartik.com>2022-11-27 13:12:14 -0800
commit176b81826cb382252768f1e163c16a2304a549ed (patch)
tree46924524d2adca648b27037270d2d5c4d40401e3 /app.lua
parent356fed8a24ce1bf3c51abd8013427670135620ee (diff)
parent60e1023f0ba5f78e2466799a96ad90edb01d6704 (diff)
downloadtext.love-176b81826cb382252768f1e163c16a2304a549ed.tar.gz
Merge lines.love
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