added rooms
This commit is contained in:
@@ -93,3 +93,21 @@ end
|
||||
function logWrite(string)
|
||||
if logging then logFile:write(string.."\n") end
|
||||
end
|
||||
|
||||
local frameDebug_lines = {}
|
||||
|
||||
-- used for debug output that will be printed every frame
|
||||
function frameDebug(str)
|
||||
table.insert(frameDebug_lines, str)
|
||||
end
|
||||
|
||||
-- called at the end of each frame, draw everything passed to frameDebug this frame
|
||||
function frameDebugFlush()
|
||||
local y = 0
|
||||
love.graphics.setColor(100, 100, 100, 0.8)
|
||||
for _, str in ipairs(frameDebug_lines) do
|
||||
love.graphics.print(str, 2, y)
|
||||
y = y + 10
|
||||
end
|
||||
frameDebug_lines = {}
|
||||
end
|
||||
Reference in New Issue
Block a user