John Andrew

Results 2 comments of John Andrew

``` stateManager = roomy.new() function love.update(dt) timer = timer+dt FPS = 1/tick.dt end function love.draw() end stateManager:hook{callbacks = {"update", "draw", "quit", "keypressed", "keyreleased"}, applyBefore = {"draw"}} requireDirectory("states") --essentially requires game.lua...

> It's a little hard to tell what's wrong without seeing the whole code. When do you switch to the game state? Edited the original comment.