examples: add entity counting

This commit is contained in:
Kazhnuz 2019-04-01 13:19:39 +02:00
parent 3e2e29539b
commit 645cd7cb2a

View file

@ -65,7 +65,7 @@ function TestScene:draw()
love.graphics.rectangle("fill", 0, 0, 424, 240)
love.graphics.setColor(1, 1, 1, 1)
love.graphics.print(math.floor(self.i) .. " ; " .. self.mouse.x .. ":" .. self.mouse.y, 16, 16)
love.graphics.print(math.floor(self.i) .. " ; " .. self.mouse.x .. ":" .. self.mouse.y .. ":" .. self.world:countActors(), 16, 16)
if self.estImpair then
self.assets.images["debris"]:draw(16, 32)