diff --git a/examples/mainmenu/init.lua b/examples/mainmenu/init.lua index 5eb7f49..7ce434b 100644 --- a/examples/mainmenu/init.lua +++ b/examples/mainmenu/init.lua @@ -36,9 +36,6 @@ function MainMenu:new() self.assets:batchImport("examples.mainmenu.assets") self:addMenu("main", true) - self:addSubMenu("menus", "menu") - self:addScene("menus", examples.Inventory, "inventory") - self:addScene("menus", examples.Options, "options") for i=1, 4 do local name = i .. "player" self:addSubMenu(name, name) @@ -52,6 +49,9 @@ function MainMenu:new() self:addScene(name, examples.MovePlayer3D, "topdown3D (zoom)", i, "zoom") end end + self:addSubMenu("menus", "menu") + self:addScene("menus", examples.Inventory, "inventory") + self:addScene("menus", examples.Options, "options") self.menusystem:setSoundFromSceneAssets("navigate")