From cff3a516083df2e43f6936812baba56a622d804a Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 7 Sep 2017 05:32:55 +0200 Subject: Graphics debug stats, coloring for layers to fix bleedin from debug --- not/World.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'not') diff --git a/not/World.lua b/not/World.lua index 45a5031..e1f2d59 100644 --- a/not/World.lua +++ b/not/World.lua @@ -212,7 +212,8 @@ function World:update (dt) end -- Some additional debug info. - dbg_msg = string.format("%sMap: %s\nClouds: %d\n", dbg_msg, self.map.filename, self:getCloudsCount()) + local stats = love.graphics.getStats() + dbg_msg = string.format("%sMap: %s\nClouds: %d\nLoaded: %d\nMB: %.2f", dbg_msg, self.map.filename, self:getCloudsCount(), stats.images, stats.texturememory / 1024 / 1024) end function World:draw () @@ -246,6 +247,7 @@ function World:draw () love.graphics.setCanvas() for _,layer in ipairs(self.layers) do + love.graphics.setColor(255, 255, 255, 255) love.graphics.draw(layer) love.graphics.setCanvas(layer) love.graphics.clear() -- cgit v1.1