Commit 8fd42f45 by BellCodeEditor

save project

parent 2ee5e583
Showing with 7 additions and 0 deletions
import pygame import pygame
from pygame import locals from pygame import locals
import random import random
import json
pygame.init() # 初始化 pygame.init() # 初始化
...@@ -127,6 +128,12 @@ while True: ...@@ -127,6 +128,12 @@ while True:
scoreSurf = basic_font.render("分数:"+str(score),True,(255,255,255)) scoreSurf = basic_font.render("分数:"+str(score),True,(255,255,255))
screen.blit(scoreSurf,(880,20)) screen.blit(scoreSurf,(880,20))
scoreSurf = basic_font.render("第1名:"+str(score),True,(255,255,255))
screen.blit(scoreSurf,(880,50))
scoreSurf = basic_font.render("第2名:"+str(score),True,(255,255,255))
screen.blit(scoreSurf,(880,80))
scoreSurf = basic_font.render("第3名:"+str(score),True,(255,255,255))
screen.blit(scoreSurf,(880,110))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
......
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