@ -22,11 +22,19 @@ public class Paddle extends Rectangle {
} else if (id == 2) {
y2 = y;
}
this.width = width;
this.height = height;
PaddleWidth(width);
PaddleHeight(height);
this.id = id;
private void PaddleHeight(int height) {
private void PaddleWidth(int width) {
public void released(KeyEvent e) {
if (e.getKeyCode() == KeyEvent.VK_W) {