diff options
author | Aki <nthirtyone@gmail.com> | 2017-09-07 05:32:55 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-09-07 05:32:55 +0200 |
commit | cff3a516083df2e43f6936812baba56a622d804a (patch) | |
tree | 09cbd6fe3148313aa4ef3d037bc025a7f8f5ecb4 /not/World.lua | |
parent | b4254d4281cae95d72c5c8ae12119494d97f1802 (diff) | |
download | roflnauts-cff3a516083df2e43f6936812baba56a622d804a.zip roflnauts-cff3a516083df2e43f6936812baba56a622d804a.tar.gz roflnauts-cff3a516083df2e43f6936812baba56a622d804a.tar.bz2 |
Graphics debug stats, coloring for layers to fix bleedin from debug
Diffstat (limited to 'not/World.lua')
-rw-r--r-- | not/World.lua | 4 |
1 files changed, 3 insertions, 1 deletions
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() |