debug keys

This commit is contained in:
Simon Kellet 2024-07-22 23:28:26 +01:00
parent 9e968b9390
commit 38826d0cd8

View File

@ -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