added rooms

This commit is contained in:
binarycat
2022-03-04 14:41:45 -05:00
committed by lustlion
parent 2b9f605a0a
commit 5643fc0140
8 changed files with 126 additions and 10 deletions

View File

@@ -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