diff options
author | Fallstar <fallstar@live.fr> | 2014-05-23 19:19:18 +0000 |
---|---|---|
committer | Fallstar <fallstar@live.fr> | 2014-05-23 19:19:18 +0000 |
commit | 9182ae1642a750fd5a8a574a6bbd1a36c105d9d9 (patch) | |
tree | c952d11ccf31011785b2bc9b1ff41ddafbf3c5ab /Gamestates/Multiplayer | |
parent | 12ba7de4216a435acd7958820588c27e76b150e4 (diff) | |
download | Mastermind-9182ae1642a750fd5a8a574a6bbd1a36c105d9d9.tar.gz Mastermind-9182ae1642a750fd5a8a574a6bbd1a36c105d9d9.tar.bz2 Mastermind-9182ae1642a750fd5a8a574a6bbd1a36c105d9d9.tar.xz Mastermind-9182ae1642a750fd5a8a574a6bbd1a36c105d9d9.zip |
Music on menu + Mute button in Options.
Diffstat (limited to 'Gamestates/Multiplayer')
-rw-r--r-- | Gamestates/Multiplayer/InGame.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Gamestates/Multiplayer/InGame.lua b/Gamestates/Multiplayer/InGame.lua index f94be12..20bf6c4 100644 --- a/Gamestates/Multiplayer/InGame.lua +++ b/Gamestates/Multiplayer/InGame.lua @@ -34,9 +34,11 @@ function InGame:enter(Local) -- Initialize or reset variables when entering game InGame:resize() -- Call the function filling the canvas InGame.Musiclowlife = love.audio.newSource("Resources/BlueMind midlife.ogg") - InGame.Music = love.audio.newSource("Resources/BlueMind.ogg") + InGame.Music = Menu.Music InGame.Music:setLooping(true) - InGame.Music:play() + if Mute == false then + InGame.Music:rewind() + end end function InGame:resize() -- Called in :enter() and when the window is resized |