Make right button cycle to (approximately) next state

master
informatic 2017-01-17 00:22:23 +01:00
parent 4a6c660e5f
commit c41bb6c1dd
1 changed files with 7 additions and 0 deletions

View File

@ -67,6 +67,13 @@ function love.draw()
push:finish()
end
function love.keypressed( key, scancode, isrepeat )
if key == "right" then
-- Cycle to next state
manager.stateTime = 2137
end
end
function love.update(dt)
manager:update(dt)