Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| dfe93e4da5 | |||
| 282a2cade3 |
Binary file not shown.
@@ -27,6 +27,11 @@ public class Player extends Actor
|
|||||||
jump();
|
jump();
|
||||||
fall();
|
fall();
|
||||||
handlePowerUps();
|
handlePowerUps();
|
||||||
|
|
||||||
|
//Check ob der Spieler am unteren Bildschirmrand ist
|
||||||
|
if (getY()+1 >= getWorld().getHeight()){
|
||||||
|
Greenfoot.setWorld(new GameOverWorld());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bewegung nach links und rechts
|
// Bewegung nach links und rechts
|
||||||
|
|||||||
Reference in New Issue
Block a user