We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66909f7 commit a2a155bCopy full SHA for a2a155b
Scripts/game.js
@@ -345,7 +345,6 @@ function draw()
345
cameraPhysics();
346
playerPaddleMovement();
347
opponentPaddleMovement();
348
- matchScoreCheck();
349
}
350
351
function ballPhysics()
@@ -359,6 +358,7 @@ function ballPhysics()
359
358
document.getElementById("scores").innerHTML = score1 + "-" + score2;
360
// reset ball to center
361
resetBall(2);
+ matchScoreCheck();
362
363
364
// if ball goes off the 'right' side (CPU's side)
@@ -370,6 +370,7 @@ function ballPhysics()
370
371
372
resetBall(1);
373
374
375
376
// if ball goes off the top side (side of table)
0 commit comments