From 60e1023f0ba5f78e2466799a96ad90edb01d6704 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 27 Nov 2022 13:10:23 -0800 Subject: [PATCH] =?UTF-8?q?undo=20an=20ancient=20hack;=20be=20an=20idiomat?= =?UTF-8?q?ic=20L=C3=96VE=20app?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.lua | 6 +++--- 1 file 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