This commit is contained in:
Renan LE CARO 2025-04-12 20:58:24 +02:00
parent 19ee1d0d33
commit 34f6aed001
11 changed files with 29 additions and 16 deletions

View file

@ -95,7 +95,7 @@ function computerControl(gameState: GameState) {
if (coinsCount) {
targetX = coinsTotalX / coinsCount;
} else {
targetX = ball.x;
targetX = gameState.canvasWidth / 2;
}
}