Skip to content

Commit

Permalink
Update pong.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Pragyanur authored Jun 28, 2024
1 parent 9634bf5 commit ff73c00
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/pong.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,10 @@ function draw() {
camera(0, 0, 850, ball.pos.x * 0.2, ball.pos.y * 0.2, 0);
B1.show();
ball.show();
ball.update();
ball.update(B1);
ball.reflect(Player1);
Player1.show();
Player1.handleKeys();
Player1.update(ball);
B1.isGoal(ball);
B1.reset();
}

0 comments on commit ff73c00

Please sign in to comment.