|
|
@ -20,6 +20,7 @@ function GameKeyPressed(key) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
-- debug map changes! |
|
|
|
-- debug map changes! |
|
|
|
|
|
|
|
--[[ |
|
|
|
if DebugFlag and key == "1" then |
|
|
|
if DebugFlag and key == "1" then |
|
|
|
_G.CUR_LEVEL = 1 |
|
|
|
_G.CUR_LEVEL = 1 |
|
|
|
RestartGame() |
|
|
|
RestartGame() |
|
|
@ -30,4 +31,10 @@ function GameKeyPressed(key) |
|
|
|
RestartGame() |
|
|
|
RestartGame() |
|
|
|
love.load() |
|
|
|
love.load() |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
if DebugFlag and key == "3" then |
|
|
|
|
|
|
|
_G.CUR_LEVEL = 3 |
|
|
|
|
|
|
|
RestartGame() |
|
|
|
|
|
|
|
love.load() |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
--]] |
|
|
|
end |
|
|
|
end |
|
|
|