Can't die diving to far anymore
This commit is contained in:
parent
870a931ee5
commit
5c1a518ded
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user