summaryrefslogtreecommitdiffhomepage
path: root/not/Menu.lua
diff options
context:
space:
mode:
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"