diff --git a/Pause/PauseKeyPressed.lua b/Pause/PauseKeyPressed.lua index cc047c5..bbd3523 100644 --- a/Pause/PauseKeyPressed.lua +++ b/Pause/PauseKeyPressed.lua @@ -1,7 +1,19 @@ function PauseKeyPressed(key) + if key == "escape" then + -- quickly return to the game + if not _G.MUTED then + musicBattle:setVolume(0.5) + musicPause:setVolume(0) + else + musicBattle:setVolume(0) + musicPause:setVolume(0) + end + _G.GAMESTATE = "GAME" + end + if key == "return" then -- quickly return to the game - if not MUTED then + if not _G.MUTED then musicBattle:setVolume(0.5) musicPause:setVolume(0) else