diff --git a/Game/GameKeyPressed.lua b/Game/GameKeyPressed.lua index e4d65a6..2c9cc12 100644 --- a/Game/GameKeyPressed.lua +++ b/Game/GameKeyPressed.lua @@ -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