Skip to content

Commit ff0f49f

Browse files
author
YHC
committed
Update gameover position
1 parent b78dd0e commit ff0f49f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -412,13 +412,14 @@ def showGameOverScreen(crashInfo):
412412
gameoverx = int((SCREENWIDTH - IMAGES['message'].get_width()) / 2)
413413
gameovery = int(SCREENHEIGHT * 0.32)
414414

415-
SCREEN_blit(IMAGES['gameover'], (gameoverx, gameovery))
416415

417416
for uPipe, lPipe in zip(upperPipes, lowerPipes):
418417
SCREEN_blit(IMAGES['pipe'][0], (uPipe['x'], uPipe['y']))
419418
SCREEN_blit(IMAGES['pipe'][1], (lPipe['x'], lPipe['y']))
420419

421420
SCREEN_blit(IMAGES['base'], (basex, BASEY))
421+
SCREEN_blit(IMAGES['gameover'], (gameoverx, gameovery))
422+
422423
showScore(score)
423424

424425
playerSurface = pygame.transform.rotate(IMAGES['player'][1], playerRot)

0 commit comments

Comments
 (0)