3 ms·
You can see what happens when the left ball has one tile and the right ball has the rest of the tiles: x1 = y1 = y3 = squareSize, x2 = canvas.width - squar
by hombre_fatal 3y ago
You can see what happens when the left ball has one tile and the right ball has the rest of the tiles:
x1 = y1 = y3 = squareSize, x2 = canvas.width - squareSize
squares = Array.from({ length: numSquaresX }, (_, i) =>
Array.from({ length: numSquaresY }, (_, j) =>
i === 0 && j === 0 ? TEAM1 : TEAM2))