@ -32,10 +32,18 @@ public class Paddle extends Rectangle {
public void move() {
y1 += yVelocity1;
yVol1();
yVol2();
}
private void yVol2() {
y2 += yVelocity2;
private void yVol1() {
public void setYDirection(int yDirection, int paddleId) {
if (paddleId == 1) {