Fix, collisions now show border in debug
This commit is contained in:
parent
a899e40c73
commit
010c19b10f
|
@ -73,4 +73,6 @@ function Collision:Draw(color)
|
||||||
love.graphics.setColor(0,1,1,0.5)
|
love.graphics.setColor(0,1,1,0.5)
|
||||||
end
|
end
|
||||||
love.graphics.rectangle("fill",self.from.x-Camera.pos.x, self.from.y-Camera.pos.y, self.width, self.height)
|
love.graphics.rectangle("fill",self.from.x-Camera.pos.x, self.from.y-Camera.pos.y, self.width, self.height)
|
||||||
|
love.graphics.setColor(0,1,90,0.5)
|
||||||
|
love.graphics.rectangle("line",self.from.x-Camera.pos.x, self.from.y-Camera.pos.y, self.width, self.height)
|
||||||
end
|
end
|
||||||
|
|
|
@ -299,7 +299,11 @@ function TileOptimizeObjects()
|
||||||
and not isTileOptimized[i+m][j+n]
|
and not isTileOptimized[i+m][j+n]
|
||||||
then
|
then
|
||||||
checkline = true
|
checkline = true
|
||||||
|
else
|
||||||
|
break
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if checkline then
|
if checkline then
|
||||||
|
@ -308,6 +312,8 @@ function TileOptimizeObjects()
|
||||||
isTileOptimized[i+m][j+l] = true
|
isTileOptimized[i+m][j+l] = true
|
||||||
end
|
end
|
||||||
m = m + 1
|
m = m + 1
|
||||||
|
else
|
||||||
|
check = false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue