diff options
-rw-r--r-- | Level.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -92,6 +92,14 @@ void Level::move() { player.setY(rect.y); + // Kill the player if they fall off the screen + if (player.getY() > SCREEN_HEIGHT) { + player.kill(); + player.setX(startX); + player.setY(startY); + cameraX = 0; + } + player.orient(); } |