diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-11-27 13:10:23 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-11-27 13:10:23 -0800 |
commit | 60e1023f0ba5f78e2466799a96ad90edb01d6704 (patch) | |
tree | 79a2eb5d08db54094b7087e43921162cbf791822 | |
parent | 44aa8226c4330bf1cf859c36a48803b7d71aa114 (diff) | |
download | lines.love-60e1023f0ba5f78e2466799a96ad90edb01d6704.tar.gz |
undo an ancient hack; be an idiomatic LÖVE app
-rw-r--r-- | app.lua | 6 |
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 |