fix(cbs): fix effectGrid drawing

This commit is contained in:
Kazhnuz 2019-08-22 22:16:00 +02:00
parent a1d0cd0225
commit 9c91c0a946

View file

@ -120,11 +120,13 @@ function Map:drawTile(x, y, type, variant)
end end
function Map:drawEffectGrid(effectGrid) function Map:drawEffectGrid(effectGrid)
for i=1,12 do for i=1,7 do
for j=1,7 do for j=1,17 do
if (effectGrid[i][j] == true) then if (effectGrid[i][j] == 1) then
local x, y = maputils.gridToPixel(i, j) local x, y = maputils.gridToPixel(j, i)
love.graphics.setColor(1, 1, 1, .2)
self.assets.images["emptytile"]:draw(x, y) self.assets.images["emptytile"]:draw(x, y)
love.graphics.setColor(1, 1, 1, 1)
end end
end end
end end