debug keys
This commit is contained in:
parent
9e968b9390
commit
38826d0cd8
@ -18,4 +18,16 @@ function GameKeyPressed(key)
|
||||
_G.GAMESTATE = "GAME"
|
||||
love.load()
|
||||
end
|
||||
|
||||
-- debug map changes!
|
||||
if DebugFlag and key == "1" then
|
||||
_G.CUR_LEVEL = 1
|
||||
RestartGame()
|
||||
love.load()
|
||||
end
|
||||
if DebugFlag and key == "2" then
|
||||
_G.CUR_LEVEL = 2
|
||||
RestartGame()
|
||||
love.load()
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user