Can't die diving to far anymore

This commit is contained in:
theo@manjaro 2021-12-07 22:22:25 +01:00
parent 870a931ee5
commit 5c1a518ded

View File

@ -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):