Browse Source

update

main
fdai4616 2 years ago
parent
commit
41c8babc75
  1. 6
      src/main/java/PingPong/GamePanel.java

6
src/main/java/PingPong/GamePanel.java

@ -83,6 +83,12 @@ public class GamePanel extends JPanel implements Runnable {
newPaddle(); newPaddle();
newBall(); newBall();
} }
if(score.player_1 == 20){
score.player_1 = 0;
score.player_2 = 0;
newPaddle();
newBall();
}
} }

Loading…
Cancel
Save