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/Solo.lua | |
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/Solo.lua')
-rw-r--r-- | Gamestates/Solo.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Gamestates/Solo.lua b/Gamestates/Solo.lua index 7cd85da..3e19152 100644 --- a/Gamestates/Solo.lua +++ b/Gamestates/Solo.lua @@ -26,9 +26,11 @@ function Solo:enter() -- Initialize or reset variables when entering game Solo:resize() -- Call the function filling the canvas - Solo.Music = love.audio.newSource("Resources/BlueMind.ogg") + Solo.Music = Menu.Music Solo.Music:setLooping(true) - Solo.Music:play() + if Mute == false then + Solo.Music:rewind() + end end function Solo:resize() -- Called in :enter() and when the window is resized |