escape key on pause

main
Simon Kellet 3 months ago
parent 585fccf59a
commit 451d710326
  1. 14
      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

Loading…
Cancel
Save