Skip to content

Commit b78dd0e

Browse files
author
YHC
committed
Added:
-Game over
1 parent 9175af5 commit b78dd0e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: main.py

+5
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,11 @@ def showGameOverScreen(crashInfo):
409409
# draw sprites
410410
SCREEN_blit(IMAGES['background'], (0, 0))
411411

412+
gameoverx = int((SCREENWIDTH - IMAGES['message'].get_width()) / 2)
413+
gameovery = int(SCREENHEIGHT * 0.32)
414+
415+
SCREEN_blit(IMAGES['gameover'], (gameoverx, gameovery))
416+
412417
for uPipe, lPipe in zip(upperPipes, lowerPipes):
413418
SCREEN_blit(IMAGES['pipe'][0], (uPipe['x'], uPipe['y']))
414419
SCREEN_blit(IMAGES['pipe'][1], (lPipe['x'], lPipe['y']))

0 commit comments

Comments
 (0)