diff --git a/Menu/MenuKeyPressed.lua b/Menu/MenuKeyPressed.lua index 7da578f..955247a 100644 --- a/Menu/MenuKeyPressed.lua +++ b/Menu/MenuKeyPressed.lua @@ -7,12 +7,12 @@ function MenuKeyPressed(key) if MENU_POS == 0 then --Change state to GAME! _G.GAMESTATE = "GAME" - print("STATE CHANEGD: GAME!") + --print("STATE CHANEGD: GAME!") musicMenu:stop() elseif MENU_POS == 1 then - print("STATE CHANEGD: DUNNO!") + --print("STATE CHANEGD: DUNNO!") elseif MENU_POS == 2 then - print("STATE CHANEGD: DUNNO!") + --print("STATE CHANEGD: DUNNO!") elseif MENU_POS == 3 then love.event.quit() end @@ -41,4 +41,14 @@ function MenuKeyPressed(key) _G.GAMESTATE = "MENU" love.load() end + + if key == "m" then + MUTED = not MUTED + + if MUTED then + musicMenu:setVolume(0) + else + musicMenu:setVolume(0.5) + end + end end