This commit is contained in:
Renan LE CARO 2025-04-09 09:55:32 +02:00
parent 183a11f989
commit 962fd8b0cd
5 changed files with 15 additions and 14 deletions

View file

@ -155,7 +155,7 @@ export const fitSize = () => {
const baseWidth = Math.round(
Math.min(gameState.canvasWidth, gameState.gameZoneHeight * 0.73),
);
gameState.brickWidth = Math.floor(baseWidth / gameState.gridSize / 2) * 2;
gameState.brickWidth = Math.floor(baseWidth / gameState.gridSize / 2) * 2;
gameState.gameZoneWidth = gameState.brickWidth * gameState.gridSize;
gameState.offsetX = Math.floor(