From 903dd34964a9b4b53db6595c0dc1b70a669dfc4e Mon Sep 17 00:00:00 2001 From: yena <50291995+nyj001012@users.noreply.github.com> Date: Wed, 13 Mar 2024 15:03:54 +0900 Subject: [PATCH] =?UTF-8?q?feat(games):=20=EA=B2=8C=EC=9E=84=20=EB=A6=AC?= =?UTF-8?q?=EC=85=8B=20=EC=8B=9C,=20=EB=B0=A9=ED=96=A5=EB=B2=A1=ED=84=B0?= =?UTF-8?q?=EC=9D=98=20=EC=B4=88=EA=B8=B0=EA=B0=92=EC=9D=84=20=ED=8A=B9?= =?UTF-8?q?=EC=A0=95=20=EB=B2=94=EC=9C=84=20=EB=82=B4=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=ED=95=A0=EB=8B=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/local-game/page.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/local-game/page.js b/frontend/src/pages/local-game/page.js index 1c550f08..f3b01142 100644 --- a/frontend/src/pages/local-game/page.js +++ b/frontend/src/pages/local-game/page.js @@ -370,8 +370,8 @@ export default function LocalGame($container, info = null) { ball.x = canvas.width / 2; ball.y = canvas.height / 2; ball.direction = { - x: Math.random() * 2 - 1, - y: Math.random() * 2 - 1, + x: (Math.random() * 2 - 1) * getRandomCoefficient(0.7, 0.9), + y: (Math.random() * 2 - 1) * getRandomCoefficient(0.7, 0.9), }; normalizeVector(ball.direction.x, ball.direction.y); ball.speed = BALL_SPEED;