fix(cbs): fix effectGrid drawing
This commit is contained in:
parent
a1d0cd0225
commit
9c91c0a946
1 changed files with 6 additions and 4 deletions
|
@ -120,11 +120,13 @@ function Map:drawTile(x, y, type, variant)
|
|||
end
|
||||
|
||||
function Map:drawEffectGrid(effectGrid)
|
||||
for i=1,12 do
|
||||
for j=1,7 do
|
||||
if (effectGrid[i][j] == true) then
|
||||
local x, y = maputils.gridToPixel(i, j)
|
||||
for i=1,7 do
|
||||
for j=1,17 do
|
||||
if (effectGrid[i][j] == 1) then
|
||||
local x, y = maputils.gridToPixel(j, i)
|
||||
love.graphics.setColor(1, 1, 1, .2)
|
||||
self.assets.images["emptytile"]:draw(x, y)
|
||||
love.graphics.setColor(1, 1, 1, 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue