escape key on pause
This commit is contained in:
parent
585fccf59a
commit
451d710326
@ -1,7 +1,19 @@
|
|||||||
function PauseKeyPressed(key)
|
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
|
if key == "return" then
|
||||||
-- quickly return to the game
|
-- quickly return to the game
|
||||||
if not MUTED then
|
if not _G.MUTED then
|
||||||
musicBattle:setVolume(0.5)
|
musicBattle:setVolume(0.5)
|
||||||
musicPause:setVolume(0)
|
musicPause:setVolume(0)
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user