draw debug text outside of camera
This commit is contained in:
parent
429f8ef813
commit
9d06b5d50e
2 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue