From 5c1a518deda0f6edebca0055d034786d1f5d90ff Mon Sep 17 00:00:00 2001 From: "theo@manjaro" Date: Tue, 7 Dec 2021 22:22:25 +0100 Subject: [PATCH] Can't die diving to far anymore --- gamedata/objects/ingame/player.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamedata/objects/ingame/player.py b/gamedata/objects/ingame/player.py index 55a40bc..94ea22b 100644 --- a/gamedata/objects/ingame/player.py +++ b/gamedata/objects/ingame/player.py @@ -227,7 +227,7 @@ class Player(Movable): offy = self.game.lib.randint(-8,8) self.game.addParticle(self.bubble,self.rect.center[0]+offx,self.rect.center[1]+offy,fps=2,depth=3,vely=-0.1) - if self.rect.center[1]>self.game.globals["cameray"]+self.game.globals["camerah"]: + if self.gravityway>0 and self.rect.center[1]>self.game.globals["cameray"]+self.game.globals["camerah"]: self.die() for i in self.spikes: if i.collidepoint(self.rect.center):