draw debug text outside of camera

This commit is contained in:
yuki 2025-11-11 22:38:50 -03:00
parent 429f8ef813
commit 9d06b5d50e
2 changed files with 1 additions and 1 deletions

View file

@ -33,6 +33,7 @@ function Room:draw()
camera:attach(0, 0, gw, gh) camera:attach(0, 0, gw, gh)
self:canvasDraw() self:canvasDraw()
camera:detach() camera:detach()
if DEBUG then love.graphics.print('DEBUG', 2, 2) end
love.graphics.setCanvas() love.graphics.setCanvas()
love.graphics.setColor(255, 255, 255, 255) love.graphics.setColor(255, 255, 255, 255)

View file

@ -13,7 +13,6 @@ end
function Stage:canvasDraw() function Stage:canvasDraw()
Stage.super.canvasDraw(self) Stage.super.canvasDraw(self)
if DEBUG then love.graphics.print('DEBUG', 2, 2) end
end end
return Stage return Stage