Browse Source

update

main
fdai4616 2 years ago
parent
commit
0774a43139
  1. 7
      src/main/java/PingPong/GamePanel.java

7
src/main/java/PingPong/GamePanel.java

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

Loading…
Cancel
Save