sonic-radiance/sonic-radiance.love/scenes/overworld/screens/mainmenu/common/charmenu.lua

13 lines
382 B
Lua
Raw Normal View History

local baseMenu = require "game.modules.menus.parents.menu"
local CharacterMenu = baseMenu:extend()
local const = require "scenes.overworld.screens.mainmenu.const"
2021-04-22 23:41:20 +02:00
function CharacterMenu:new(scene, x)
local x = x or const.X + 136
local w = const.WIDTH - x + 28
CharacterMenu.super.new(self, scene, "character", x, const.Y, w, const.HEIGHT, 4)
end
return CharacterMenu