Compare commits
2 Commits
4bc13d6d57
...
dfe93e4da5
| Author | SHA1 | Date | |
|---|---|---|---|
| dfe93e4da5 | |||
| 282a2cade3 |
Binary file not shown.
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user