summaryrefslogtreecommitdiffhomepage
path: root/menu.lua
diff options
context:
space:
mode:
Diffstat (limited to 'menu.lua')
-rw-r--r--menu.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/menu.lua b/menu.lua
index 9c7481b..49c067d 100644
--- a/menu.lua
+++ b/menu.lua
@@ -3,12 +3,14 @@
-- I do know that model I used here and in `World` loading configuration files is not flawless but I did not want to rewrite `World`s one but wanted to keep things similar at least in project scope.
require "selector"
+require "music"
-- Here it begins
Menu = {
scale = getScale(),
elements, --table
- active = 1
+ active = 1,
+ music
}
function Menu:new(name)
local o = {}
@@ -16,6 +18,7 @@ function Menu:new(name)
self.__index = self
o.elements = {}
o:load(name)
+ o.music = Music:new("menu.ogg")
return o
end
function Menu:delete() end