From 9182ae1642a750fd5a8a574a6bbd1a36c105d9d9 Mon Sep 17 00:00:00 2001 From: Fallstar Date: Fri, 23 May 2014 19:19:18 +0000 Subject: Music on menu + Mute button in Options. --- Gamestates/Multiplayer/InGame.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Gamestates/Multiplayer/InGame.lua') 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 -- cgit v1.2.3-54-g00ecf