undo an ancient hack; be an idiomatic LÖVE app
This commit is contained in:
parent
44aa8226c4
commit
60e1023f0b
6
app.lua
6
app.lua
|
@ -32,14 +32,14 @@ function love.run()
|
||||||
end
|
end
|
||||||
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.origin()
|
||||||
love.graphics.clear(love.graphics.getBackgroundColor())
|
love.graphics.clear(love.graphics.getBackgroundColor())
|
||||||
App.draw()
|
App.draw()
|
||||||
love.graphics.present()
|
love.graphics.present()
|
||||||
|
|
||||||
dt = love.timer.step()
|
|
||||||
App.update(dt)
|
|
||||||
love.timer.sleep(0.001)
|
love.timer.sleep(0.001)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue