0

I'm making a replica of Flappy bird with pygame and when I test to see if the bird collides with the pipes, it always returns with a false positive. Why is this?

def collisionHandler():
    if bird.rect.colliderect(pipe.rect_top) == 1:
        print("Collision! Oh noes!")

where bird.rect is simply self.rect = self.surface.get_rect() and pipe.rect_top is a rect created in a function.

Andrew Lalis
  • 894
  • 3
  • 15
  • 26

0 Answers0