feat(ball): Флаг isOut заменен на поле status, изменено начальное положение мяча при старте игры, добавлена функция запуска мяча по клику

This commit is contained in:
Ilia Mashkov
2026-07-19 11:24:37 +03:00
parent e7b52bdbd9
commit 0f057c1add
4 changed files with 40 additions and 12 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ export function tick(game, containerWidth, containerHeight, deltaTime) {
// Проверяем выход за границу стены снизу
if (ball.y >= bottomBoundary) {
game.ball.isOut = true;
game.ball.status = 'out';
return;
}