pong: fix left paddle location
This commit is contained in:
parent
e2f111dd36
commit
d1d9631ae8
@ -87,7 +87,7 @@ class PongCore {
|
|||||||
this.gameover = false;
|
this.gameover = false;
|
||||||
this.paddleSpeed = 6;
|
this.paddleSpeed = 6;
|
||||||
this.ball = new Ball(new Box(this.width / 2, this.height / 2, this.grid, this.grid));
|
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);
|
this.right = new Paddle(new Box(this.width - this.grid * 3, this.height / 2 - this.paddleHeight / 2, this.grid, this.paddleHeight), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user