diff options
author | Aki <nthirtyone@gmail.com> | 2017-07-12 09:04:23 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-07-12 09:04:23 +0200 |
commit | 47d4e1c229adfffb70b3c984d00049bcebcfc183 (patch) | |
tree | ab4b34ade5b5cc19d122c4f396e413b61aacbf04 /not/Menu.lua | |
parent | 4e69182a6d36966847430f01b440a9cdac0e4cdc (diff) | |
download | roflnauts-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.lua | 9 |
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" |