From 38826d0cd8443500f8670b13738c1ec84e55af08 Mon Sep 17 00:00:00 2001 From: Simon Kellet Date: Mon, 22 Jul 2024 23:28:26 +0100 Subject: [PATCH] debug keys --- Game/GameKeyPressed.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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