Hi,
I am trying to program a Bomberman game with several levels (worlds).
The idea is that when your actor dies, the level in which he is right now, starts new. How can I check, which world is active right now and reset this world?
if ( getWorld() == Level1.class ) { Greenfoot.setWorld(new Level1()); }
incomparable types: greenfoot.World and java.Class<Level1>