feat(ball): Флаг isOut заменен на поле status, изменено начальное положение мяча при старте игры, добавлена функция запуска мяча по клику
This commit is contained in:
1 parent
e7b52bdbd9
commit
0f057c1add
4 files changed
+40
-12
No files matched your search
@@ -61,7 +61,7 @@ export function tick(game, containerWidth, containerHeight, deltaTime) {
|
||||
|
||||
// Проверяем выход за границу стены снизу
|
||||
if (ball.y >= bottomBoundary) {
|
||||
game.ball.isOut = true;
|
||||
game.ball.status = 'out';
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user