Skip to content

Commit

Permalink
update rit game flappy-bird formula
Browse files Browse the repository at this point in the history
Signed-off-by: GuillaumeFalourd <[email protected]>
  • Loading branch information
GuillaumeFalourd committed Feb 26, 2021
1 parent 7d753ae commit e93794e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified docs/img/rit-game-flappy-bird-formula.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/rit-game-flappy-bird-game-over.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions game/flappy-bird/src/formula/formula.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def replay_or_quit():
for event in pygame.event.get([pygame.KEYDOWN, pygame.KEYUP, pygame.QUIT]):
if event.type == pygame.KEYUP:
if event.key == pygame.K_ESCAPE:
print("➡️ Thank you for playing with Ritchie CLI! 🆒")
print("➡️ Thank you for using Ritchie CLI! 🆒")
pygame.quit()
quit()

Expand All @@ -158,7 +158,7 @@ def msg_surface(text, difficulty):
titleTextRect.center = surfaceWidth / 2, surfaceHeight / 2
surface.blit(titletextSurf, titleTextRect)

typtextSurf, typTextRect = makeTextObjs('Press any key to continue', smallText)
typtextSurf, typTextRect = makeTextObjs('Press ANY KEY to continue or ESC to exit', smallText)
typTextRect.center = surfaceWidth / 2, ((surfaceHeight / 2) + 100)
surface.blit(typtextSurf, typTextRect)

Expand Down

0 comments on commit e93794e

Please sign in to comment.