Hi there. I'm looking to make a new level in my game. I was just wondering how to declare the new world and how to switch to that world once the first level is complete. To complete the level, the character has to kill all the enemies.
Level2 world = new Level2(); Greenfoot.setWorld(world);
if(getObjects(Enemy.class).isEmpty())
{
Level2 world = new Level2();
Greenfoot.setWorld(world);
}