diff --git a/src/main/java/PingPong/Paddle.java b/src/main/java/PingPong/Paddle.java index 4135fd9..abe5d60 100644 --- a/src/main/java/PingPong/Paddle.java +++ b/src/main/java/PingPong/Paddle.java @@ -31,7 +31,11 @@ public class Paddle extends Rectangle { } public void move() { - } + + y1 += yVelocity1; + y2 += yVelocity2; + } + public void setYDirection(int yDirection, int paddleId) { if (paddleId == 1) { @@ -40,4 +44,5 @@ public class Paddle extends Rectangle { yVelocity2 = yDirection; } } + }