Commit 53e86b5a authored by Alan Aguiar's avatar Alan Aguiar
Browse files

prevent fly up the pipes

parent 7bdd385d
......@@ -47,7 +47,10 @@ class Bird(pygame.sprite.Sprite):
self.mPos[1] = self.mPos[1] + self.mAcc
else:
self.mPos[1] = self.mPos[1] - self.mVel
if self.mPos[1] < 0:
self.mPos[1] = 0
self.rect.y = self.mPos[1]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment