less prints
This commit is contained in:
parent
7b553d9758
commit
3290d704e3
@ -7,12 +7,12 @@ function MenuKeyPressed(key)
|
|||||||
if MENU_POS == 0 then
|
if MENU_POS == 0 then
|
||||||
--Change state to GAME!
|
--Change state to GAME!
|
||||||
_G.GAMESTATE = "GAME"
|
_G.GAMESTATE = "GAME"
|
||||||
print("STATE CHANEGD: GAME!")
|
--print("STATE CHANEGD: GAME!")
|
||||||
musicMenu:stop()
|
musicMenu:stop()
|
||||||
elseif MENU_POS == 1 then
|
elseif MENU_POS == 1 then
|
||||||
print("STATE CHANEGD: DUNNO!")
|
--print("STATE CHANEGD: DUNNO!")
|
||||||
elseif MENU_POS == 2 then
|
elseif MENU_POS == 2 then
|
||||||
print("STATE CHANEGD: DUNNO!")
|
--print("STATE CHANEGD: DUNNO!")
|
||||||
elseif MENU_POS == 3 then
|
elseif MENU_POS == 3 then
|
||||||
love.event.quit()
|
love.event.quit()
|
||||||
end
|
end
|
||||||
@ -41,4 +41,14 @@ function MenuKeyPressed(key)
|
|||||||
_G.GAMESTATE = "MENU"
|
_G.GAMESTATE = "MENU"
|
||||||
love.load()
|
love.load()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if key == "m" then
|
||||||
|
MUTED = not MUTED
|
||||||
|
|
||||||
|
if MUTED then
|
||||||
|
musicMenu:setVolume(0)
|
||||||
|
else
|
||||||
|
musicMenu:setVolume(0.5)
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user