Browse Source

update

main
fdai4616 2 years ago
parent
commit
193121ef52
  1. 4
      src/main/java/PingPong/GamePanel.java
  2. 3
      src/main/java/PingPong/Paddle.java

4
src/main/java/PingPong/GamePanel.java

@ -56,6 +56,10 @@ public class GamePanel extends JPanel implements Runnable {
paddle_2.pressed(e);
}
}
public void keyReleased(KeyEvent e) {
paddle_1.released(e);
paddle_2.released(e);
}

3
src/main/java/PingPong/Paddle.java

@ -9,4 +9,7 @@ public class Paddle {
public void pressed(KeyEvent e) {
}
public void released(KeyEvent e) {
}
}
Loading…
Cancel
Save