summaryrefslogtreecommitdiffhomepage
path: root/not/Menu.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-07-12 09:04:23 +0200
committerAki <nthirtyone@gmail.com>2017-07-12 09:04:23 +0200
commit47d4e1c229adfffb70b3c984d00049bcebcfc183 (patch)
treeab4b34ade5b5cc19d122c4f396e413b61aacbf04 /not/Menu.lua
parent4e69182a6d36966847430f01b440a9cdac0e4cdc (diff)
downloadroflnauts-47d4e1c229adfffb70b3c984d00049bcebcfc183.zip
roflnauts-47d4e1c229adfffb70b3c984d00049bcebcfc183.tar.gz
roflnauts-47d4e1c229adfffb70b3c984d00049bcebcfc183.tar.bz2
All music playing moved to single instance of MusicPlayer
Diffstat (limited to 'not/Menu.lua')
-rw-r--r--not/Menu.lua9
1 files changed, 3 insertions, 6 deletions
diff --git a/not/Menu.lua b/not/Menu.lua
index cd6d963..4dcff5e 100644
--- a/not/Menu.lua
+++ b/not/Menu.lua
@@ -38,8 +38,6 @@ Menu = {
Menu.__index = Menu
-require "not.MusicPlayer"
-
function Menu:new (name)
local o = setmetatable({}, self)
-- Load statically.
@@ -54,13 +52,12 @@ function Menu:new (name)
end
function Menu:init (name)
- self.music = MusicPlayer("menu.ogg")
+ musicPlayer:setTrack("menu.ogg")
+ musicPlayer:play()
self:open(name)
end
-function Menu:delete ()
- self.music:delete()
-end
+function Menu:delete () end
function Menu:open (name)
local name = name or "main"