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

13 lines
382 B
Lua
Raw Normal View History

2021-11-25 10:57:13 +01:00
local baseMenu = require "game.modules.menus.parents.menu"
local CharacterMenu = baseMenu:extend()
local const = require "scenes.overworld.screens.mainmenu.const"
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