Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
updated code according to PEP18
  • Loading branch information
itspyguru committed Oct 4, 2021
commit 6007568ec187ee9bc5031fd74ac8a1ecdbfb450d
4 changes: 2 additions & 2 deletions Code-Sleep-Python/Flappy Bird/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@
grumpy.update()
score_img.update(score)

if pygame.sprite.spritecollide(grumpy, pipe_group, False)
or grumpy.rect.top <= 0:
if (pygame.sprite.spritecollide(grumpy, pipe_group, False)
or grumpy.rect.top <= 0):
game_started = False
if grumpy.alive:
hit_fx.play()
Expand Down