33 lines
515 B
Lua
33 lines
515 B
Lua
|
local MenuScreenParent = Object:extend()
|
||
|
|
||
|
local menu = require "scenes.overworld.screens.menu"
|
||
|
|
||
|
function MenuScreenParent:new(scene)
|
||
|
self.scene = scene
|
||
|
self.menusystem = scene.menusystem
|
||
|
|
||
|
self.menuObj = menu
|
||
|
|
||
|
self:setMenu()
|
||
|
self.scene:registerScreen(self)
|
||
|
end
|
||
|
|
||
|
function MenuScreenParent:update(dt)
|
||
|
|
||
|
end
|
||
|
|
||
|
function MenuScreenParent:setMenu()
|
||
|
|
||
|
end
|
||
|
|
||
|
function MenuScreenParent:quit()
|
||
|
self.scene.menusystem:reset()
|
||
|
self.scene:quitScreen()
|
||
|
end
|
||
|
|
||
|
function MenuScreenParent:draw()
|
||
|
|
||
|
end
|
||
|
|
||
|
return MenuScreenParent
|