refactor: all hulls
This commit is contained in:
parent
65c23b50d9
commit
7cd05faddf
|
@ -44,10 +44,6 @@ function createLayerMask(layer) {
|
|||
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
||||
ctx.fillStyle = 'rgba(255, 255, 255, 1)';
|
||||
for (let i = 0; i < hulls.length; ++i) {
|
||||
const {x, y} = hulls[i][0];
|
||||
if (7 !== layer.tile({x: Math.floor(x / tileSize.x), y: Math.floor(y / tileSize.y)})) {
|
||||
continue;
|
||||
}
|
||||
const hull = [...hulls[i]];
|
||||
hull.push(hull[0]);
|
||||
ctx.beginPath();
|
||||
|
|
Loading…
Reference in New Issue
Block a user