naming conventions act 2: the end
This commit is contained in:
@@ -8,16 +8,16 @@ function debugUI()
|
||||
love.graphics.print(light.pos.x,light.pos.x,light.pos.y+40)
|
||||
end
|
||||
|
||||
love.graphics.print("time: ".. tostring(math.floor(100*game.secondsSinceStart)/100) .." fps: "..fps_current, 10*textScale, 0*textScale, 0, textScale)
|
||||
love.graphics.print(--[["CPUtime: "..checkCPUTime("total")..", CPU: "..(math.floor(checkCPUTime("get")*10000)/100).."%,]] "memoryUsage: "..memoryUsage.."kB", 10*textScale, 20*textScale, 0, textScale)
|
||||
love.graphics.print("time: ".. tostring(math.floor(100*game.seconds_since_start)/100) .." fps: "..fps_current, 10*text_size, 0*text_size, 0, text_size)
|
||||
love.graphics.print(--[["CPUtime: "..checkCPUTime("total")..", CPU: "..(math.floor(checkCPUTime("get")*10000)/100).."%,]] "memory_usage: "..memory_usage.."kB", 10*text_size, 20*text_size, 0, text_size)
|
||||
|
||||
love.graphics.setColor(1,1,1)
|
||||
-- lots of variables
|
||||
love.graphics.print("LoadedObjects",10*textScale,40*textScale, 0, textScale)
|
||||
love.graphics.print("LoadedObjects",10*text_size,40*text_size, 0, text_size)
|
||||
local i = 1
|
||||
for k, v in pairs(LoadedObjects) do
|
||||
if type(v) == "table" then
|
||||
love.graphics.print("<"..k.."> ".. #v,10*textScale,(40+(10*i))*textScale, 0, textScale)
|
||||
love.graphics.print("<"..k.."> ".. #v,10*text_size,(40+(10*i))*text_size, 0, text_size)
|
||||
i = i + 1
|
||||
end
|
||||
end
|
||||
@@ -34,7 +34,7 @@ end
|
||||
|
||||
function debugEntities()
|
||||
love.graphics.setScale(game.scale)
|
||||
for _, particle in pairs(LoadedParticles) do
|
||||
for _, particle in pairs(LoadedObjects.Particles) do
|
||||
particle:debug()
|
||||
end
|
||||
for _, enty in pairs(LoadedObjects.Entities) do
|
||||
|
||||
Reference in New Issue
Block a user