From 4acc547bae89f70af2d299658b7b88827833b4ce Mon Sep 17 00:00:00 2001 From: fdai4616 Date: Tue, 7 Feb 2023 23:41:21 +0100 Subject: [PATCH] update --- src/main/java/PingPong/Paddle.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; } } + }