Commit 03f64588 by BellCodeEditor

save project

parent 3fcd8761
Showing with 10 additions and 1 deletions
...@@ -119,7 +119,15 @@ while True: ...@@ -119,7 +119,15 @@ while True:
gameover = pygame.image.load('gameover.png') # 游戏结束 gameover = pygame.image.load('gameover.png') # 游戏结束
screen.blit(gameover, (400, 200)) screen.blit(gameover, (400, 200))
gamestate = False gamestate = False
else:
scoreSurf = basic_fonc.render("分数:"+str(resord),True,(255,255,255))
record.blit(scoreSurf,(880,20))
scoreSurf = basic_fonc.render("第1名:"+str(one),True,(255,255,255))
record.blit(scoreSurf,(880,50))
scoreSurf = basic_fonc.render("第2名:"+str(two),True,(255,255,255))
record.blit(scoreSurf,(880,80))
scoreSurf = basic_fonc.render("第3名:"+str(three),True,(255,255,255))
record.blit(scoreSurf,(880,110))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
FPS.tick(60) FPS.tick(60)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment