refactor: all hulls

This commit is contained in:
cha0s 2024-07-07 23:28:17 -05:00
parent 65c23b50d9
commit 7cd05faddf

View File

@ -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();