sonic-radiance/sonic-radiance.love/scenes/debug/menu/infopanel/character.lua

16 lines
423 B
Lua
Raw Normal View History

2020-08-02 10:33:31 +02:00
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