Commit 05f062e6 by BellCodeEditor

save project

parent 4eaabaaf
Showing with 10 additions and 10 deletions
...@@ -61,9 +61,9 @@ block_list =pygame.sprite.Group() # 创建精灵组 ...@@ -61,9 +61,9 @@ block_list =pygame.sprite.Group() # 创建精灵组
with open('record.txt','r',encoding='utf-8') as f: with open('record.txt','r',encoding='utf-8') as f:
content = f.read() content = f.read()
record = json.loads(content) record = json.loads(content)
one = record["第名"] one = record["第1名"]
two = record["第名"] two = record["第2名"]
three = record["第名"] three = record["第3名"]
while True: while True:
...@@ -142,14 +142,14 @@ while True: ...@@ -142,14 +142,14 @@ while True:
scoreSurf = basic_font.render("分数:"+str(score),True,(0,255,0)) scoreSurf = basic_font.render("分数:"+str(score),True,(0,255,0))
screen.blit(scoreSurf,(850,20)) screen.blit(scoreSurf,(880,20))
scoreSurf = basic_font.render("第1名:"+str(one)),True,(0,255,0)) scoreSurf = basic_font.render("第1名:"+str(one),True,(0,255,0))
screen.blit(scoreSurf,(850,50)) screen.blit(scoreSurf,(880,50))
scoreSurf = basic_font.render("第2名:"+str(two),True,(0,255,0)) scoreSurf = basic_font.render("第2名:"+str(two),True,(0,255,0))
screen.blit(scoreSurf,(850,80)) screen.blit(scoreSurf,(880,80))
scoreSurf = basic_font.render("第3名:"+str(three),True,(0,255,0)) scoreSurf = basic_font.render("第3名:"+str(three),True,(0,255,0))
screen.blit(scoreSurf,(850,110)) screen.blit(scoreSurf,(880,110))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
FPS.tick(60) FPS.tick(30)
\ No newline at end of file \ 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