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

18 lines
547 B
Lua
Raw Normal View History

2020-08-02 08:30:19 +02:00
local Parent = require "scenes.debug.menu.infopanel.parent"
local GamePanel = Parent:extend()
function GamePanel:new()
GamePanel.super.new(self)
end
function GamePanel:drawContent(x, y)
local debugString = "# Save system data" .. "\n"
2020-08-02 09:59:47 +02:00
debugString = debugString .. "Current slot: " .. game.slot .. " / " .. game.slotNumber .. "\n"
2020-08-02 15:56:36 +02:00
debugString = debugString .. "Rings: " .. game.loot.rings .. "\n"
2020-08-02 08:30:19 +02:00
debugString = debugString .. "Gametime: " .. game:getTimeString() .. "\n"
love.graphics.print(debugString, x, y)
end
return GamePanel