Bilder, Score Anzeige und Dauer der Plattform

This commit is contained in:
2026-09-17 16:06:17 +02:00
parent 40d5295716
commit 8a15fa5a51
17 changed files with 116 additions and 91 deletions
+2 -1
View File
@@ -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();
}