Browse Source

refactoring:

main
fdai4616 2 years ago
parent
commit
b4e47dc1c6
  1. 6
      src/main/java/PingPong/Paddle.java

6
src/main/java/PingPong/Paddle.java

@ -59,8 +59,12 @@ public class Paddle extends Rectangle {
g.setColor(Color.BLUE);
g.fillRect(x, y1, width, height);
} else {
g.setColor(Color.YELLOW);
Paddle1(g);
g.fillRect(x, y2, width, height);
}
}
private static void Paddle1(Graphics g) {
g.setColor(Color.YELLOW);
}
}
Loading…
Cancel
Save