undo an ancient hack; be an idiomatic LÖVE app

This commit is contained in:
Kartik K. Agaram 2022-11-27 13:10:23 -08:00
parent 44aa8226c4
commit 60e1023f0b
1 changed files with 3 additions and 3 deletions

View File

@ -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