how would you create levels ,like level one would have one enemy level two would have two and so on.., please help
thx


import greenfoot.*; public class Arena extends World { static int totalEnemies = 1; public Arena() { super(600, 400, 1); // etc.
for (int i = 0; i < totalEnemies; i++) addObject(new Enemy(), Greenfoot.getRandomNumber(getWidth() - 100) + 50, Greenfoot.getRandomNumber(getHeight() - 100) + 50);
totalEnemies++; Greenfoot.setWorld(new Arena());