Compare commits

...

2 Commits

2 changed files with 5 additions and 0 deletions
Binary file not shown.
+5
View File
@@ -27,6 +27,11 @@ public class Player extends Actor
jump();
fall();
handlePowerUps();
//Check ob der Spieler am unteren Bildschirmrand ist
if (getY()+1 >= getWorld().getHeight()){
Greenfoot.setWorld(new GameOverWorld());
}
}
// Bewegung nach links und rechts