alright im back at square one and im completely confused. ill take this step by step:
1. created this method within the ball class in order to create a method that returns the dimensions of the ball...
Type: Posts; User: burntcasadilla
alright im back at square one and im completely confused. ill take this step by step:
1. created this method within the ball class in order to create a method that returns the dimensions of the ball...
i have this code that creates a new ball every 3 seconds
if (timeSinceLastNewDot >= NEW_DOT_FREQ)
{
int newX = randomNumber();
int newY = randomNumber();
...
public Rectangle getBallBounds()
{
for(int i = 0; i < BALLS.size(); i++)
{
new Rectangle(BALLS.get(i).x, BALLS.get(i).y, 20, 20);
}
return ???;
...
i have an arraylist that creates balls at random points x and y with set height and width of 20. each ball is created every 3 seconds and then stored in the arraylist
public ArrayList<Ball>...