diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/menumain.lua | 29 | ||||
-rw-r--r-- | config/menustart.lua | 11 |
2 files changed, 39 insertions, 1 deletions
diff --git a/config/menumain.lua b/config/menumain.lua index a4374ad..7c8ddf9 100644 --- a/config/menumain.lua +++ b/config/menumain.lua @@ -1 +1,28 @@ -return {"Start", "Join", "Settings", "Credits", "Exit"}
\ No newline at end of file +local button = require "button" + +return { + button + :new("start") + :setPosition(10,40) + :set("active", function () + changeScene(Menu:new("menustart")) + end) + , + button + :new("join") + :setPosition(10,50) + , + button + :new("settings") + :setPosition(10,60) + , + button + :new("credits") + :setPosition(10,70) + , + button + :new("exit") + :setPosition(10,80) + :set("active", love.event.quit) + , +}
\ No newline at end of file diff --git a/config/menustart.lua b/config/menustart.lua new file mode 100644 index 0000000..03ca2f2 --- /dev/null +++ b/config/menustart.lua @@ -0,0 +1,11 @@ +local button = require "button" + +return { + button + :new("WORKED") + :setPosition(10,40) + :set("active", function () + changeScene(Menu:new("menumain")) + end) + , +}
\ No newline at end of file |