Bilder, Score Anzeige und Dauer der Plattform
This commit is contained in:
@@ -38,7 +38,8 @@ public class SpikedPlattform extends Plattform
|
||||
}
|
||||
if(isSpiked && this.PlayerOnPlattform())
|
||||
{
|
||||
Greenfoot.setWorld(new GameOverWorld());
|
||||
MyWorld world = (MyWorld) getWorld();
|
||||
Greenfoot.setWorld(new GameOverWorld(world.score));
|
||||
}
|
||||
super.act();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user