sonic-radiance/sonic-radiance.love/scenes/debug/menu/infopanel/character.lua
2020-08-02 10:33:31 +02:00

15 lines
423 B
Lua

local Parent = require "scenes.debug.menu.infopanel.parent"
local CharacterPanel = Parent:extend()
function CharacterPanel:new(character)
CharacterPanel.super.new(self)
self.character = character
end
function CharacterPanel:drawContent(x, y)
local debugString = "# " .. self.character.name .. "(" .. "Lvl " .. self.character.level .. ")" .. "\n"
love.graphics.print(debugString, x, y)
end
return CharacterPanel