This is all I have so far and I'm stuck on where to start. Please help? Im trying to create a brickbreaker game. Also my ball looks like a square.?
private GreenfootImage ball;
private int directionX, directionY;
private int speed;
public Ball()
{
ball = new GreenfootImage (30, 30);
updateImage();
this.setImage(ball);
speed = 5;
directionX = 1;
directionY = 1;
}
private void updateImage()
{
ball.clear();
ball.setColor (Color.RED);
ball.fill();
ball.drawOval (20, 20, 20, 20);
}
}