Enabling drawing in love.update() - Solved!
Posted: Mon Mar 14, 2016 12:18 am
Hi all! In my current project, I'd like to treat rendering as part of the standard game update loop. But since love.run has a love.graphics.clear() between calling love.update and love.draw, anything drawn will be immediately lost.
I know I can very easily change this behaviour by moving the offending love.graphics.clear() up a few lines in love.run. However, changing love.run seems terribly intrusive for a library, so I'm wondering if there are more elegant ways of going about it? ("Elegant" discounting solutions such as running all updates in love.draw - eww)
I know I can very easily change this behaviour by moving the offending love.graphics.clear() up a few lines in love.run. However, changing love.run seems terribly intrusive for a library, so I'm wondering if there are more elegant ways of going about it? ("Elegant" discounting solutions such as running all updates in love.draw - eww)