fix(tick): Исправлено отсутствие обращения к свойству класса
This commit is contained in:
@@ -91,7 +91,7 @@ export function tick(game, containerWidth, containerHeight, deltaTime) {
|
||||
ball.x >= paddle.x &&
|
||||
ball.x <= paddle.x + paddle.width
|
||||
) {
|
||||
verticalSpeed *= -1;
|
||||
ball.verticalSpeed *= -1;
|
||||
}
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
|
||||
Reference in New Issue
Block a user