I am making a zombie game and I want to add screens with between each round. How do I do this?


// in the Level1 world, when complete (done similar for each level) World world = new Level2(); Greenfoot.setWorld(new Intermission(world)); // in the Intermission class code // add the following field private World nextWorld; // use this as your constructor public Intermission(World world) { super(600, 400, 1); nextWorld = world; // code to construct world } // to proceed to next world Greenfoot.setWorld(nextWorld);