Snippets Groups Projects
Commit 7b02b6eb authored by Eero Häihälä's avatar Eero Häihälä
Browse files

Fix pillar collision

parent 9bd27d16
Branches
No related merge requests found
......@@ -37,7 +37,7 @@ class Game:
def logic(self):
self.tirppa.move()
for pillar in self.pillars:
if not self.tirppa.dead and pillar.rect.contains(self.tirppa.rect):
if not self.tirppa.dead and pillar.rect.colliderect(self.tirppa.rect):
self.tirppa.die()
pillar.move()
......
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