print amount of objects on debug
This commit is contained in:
parent
7f86166f8d
commit
6a251b3619
2 changed files with 4 additions and 2 deletions
|
|
@ -33,7 +33,10 @@ function Room:draw()
|
|||
camera:attach(0, 0, gw, gh)
|
||||
self:canvasDraw()
|
||||
camera:detach()
|
||||
if DEBUG then love.graphics.print('DEBUG', 2, 2) end
|
||||
if DEBUG then
|
||||
love.graphics.print('objects: '..#self.area.game_objects,2,gh-16)
|
||||
love.graphics.print('DEBUG', 2, 2)
|
||||
end
|
||||
love.graphics.setCanvas()
|
||||
|
||||
love.graphics.setColor(255, 255, 255, 255)
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@ end
|
|||
function CircleRoom:canvasDraw()
|
||||
CircleRoom.super.canvasDraw(self)
|
||||
love.graphics.setColor(1, 1, 1)
|
||||
love.graphics.print('objects: '..#self.area.game_objects,2,gh-16)
|
||||
end
|
||||
|
||||
return CircleRoom
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue