I'm a university student and I have this Assignment where the screen is supposed to go one step down for every 10th ball from the cannon.
It is a clone of the game Puzzle Booble.
public void scrollDown(int fields)
{
int n = getWorld().getObjects(Actor.class).size();
for(int i=0; i<n; i++)
{
Actor a = getWorld().getObjects(Actor.class).get(i);
a.setLocation(getX(), getY()- fields);
}
}