@ -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;