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