diff --git a/src/main/java/PingPong/GamePanel.java b/src/main/java/PingPong/GamePanel.java index 639d25a..fb3af78 100644 --- a/src/main/java/PingPong/GamePanel.java +++ b/src/main/java/PingPong/GamePanel.java @@ -25,17 +25,28 @@ public class GamePanel extends JPanel implements Runnable { + + + public void run() { } + public void draw(Graphics g) { score.draw(g); paddle_1.draw(g); paddle_2.draw(g); ball.draw(g); + } + public void move() { + + paddle_1.move(); + paddle_2.move(); + ball.move(); + } public void paint(Graphics g) { image = createImage(getWidth(), getHeight()); diff --git a/src/main/java/PingPong/Paddle.java b/src/main/java/PingPong/Paddle.java index 8818b4e..eb15f54 100644 --- a/src/main/java/PingPong/Paddle.java +++ b/src/main/java/PingPong/Paddle.java @@ -12,4 +12,7 @@ public class Paddle { public void released(KeyEvent e) { } + + public void move() { + } } diff --git a/target/classes/PingPong/GamePanel.class b/target/classes/PingPong/GamePanel.class index 6da66e1..7d69b47 100644 Binary files a/target/classes/PingPong/GamePanel.class and b/target/classes/PingPong/GamePanel.class differ diff --git a/target/classes/PingPong/Paddle.class b/target/classes/PingPong/Paddle.class index 79e7e2d..4c52488 100644 Binary files a/target/classes/PingPong/Paddle.class and b/target/classes/PingPong/Paddle.class differ diff --git a/target/classes/PingPong/Score.class b/target/classes/PingPong/Score.class index 29c99b7..52090d3 100644 Binary files a/target/classes/PingPong/Score.class and b/target/classes/PingPong/Score.class differ