From 645cd7cb2ae2449eadf48b17fd2b4712b2b04d8d Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Mon, 1 Apr 2019 13:19:39 +0200 Subject: [PATCH] examples: add entity counting --- examples/test_scene2/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/test_scene2/init.lua b/examples/test_scene2/init.lua index 93ca324..c826969 100644 --- a/examples/test_scene2/init.lua +++ b/examples/test_scene2/init.lua @@ -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)