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/Menu.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Gamestates/Menu.lua') diff --git a/Gamestates/Menu.lua b/Gamestates/Menu.lua index 37e69a4..7a7b32c 100644 --- a/Gamestates/Menu.lua +++ b/Gamestates/Menu.lua @@ -46,6 +46,11 @@ function Menu:enter() Gui.core.style.color.active.bg[2] = 24 Gui.core.style.color.active.bg[3] = 24 -- End + Menu.Music = love.audio.newSource("Resources/BlueMind.ogg") + Menu.Music:setLooping(true) + if Mute == false then + Menu.Music:play() + end end function Menu:update(dt) @@ -62,4 +67,6 @@ function Menu:draw() Gui.core.draw() end + + return Menu -- cgit v1.2.3-54-g00ecf