less prints

main
Simon Kellet 5 months ago
parent 7b553d9758
commit 3290d704e3
  1. 16
      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

Loading…
Cancel
Save