From d1d9631ae8e6c31ce6e2af0f278231fb01e4929a Mon Sep 17 00:00:00 2001 From: Trianta <56975502+Trimutex@users.noreply.github.com> Date: Mon, 30 Dec 2024 17:03:22 -0600 Subject: [PATCH] pong: fix left paddle location --- src/pong.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pong.ts b/src/pong.ts index c549c1b..afe9c6c 100644 --- a/src/pong.ts +++ b/src/pong.ts @@ -87,7 +87,7 @@ class PongCore { this.gameover = false; this.paddleSpeed = 6; this.ball = new Ball(new Box(this.width / 2, this.height / 2, this.grid, this.grid)); - this.left = new Paddle(new Box(this.width / 2, this.height / 2 - this.paddleHeight / 2, this.grid, this.paddleHeight), true); + this.left = new Paddle(new Box(this.grid * 2, this.height / 2 - this.paddleHeight / 2, this.grid, this.paddleHeight), true); this.right = new Paddle(new Box(this.width - this.grid * 3, this.height / 2 - this.paddleHeight / 2, this.grid, this.paddleHeight), false); }