Commit a4b87269 by BellCodeEditor

save project

parent 682735e6
Showing with 8 additions and 2 deletions
......@@ -133,7 +133,7 @@ while True:
record["第1名"] = score
record["第2名"] = one
record["第3名"] = two
elif:
elif score>two:
record["第2名"] = score
record["第3名"] = one
else:
......@@ -150,8 +150,14 @@ while True:
score_audio.play()
old_score = score
scoreSurf = basic_font.render("分数:"+str(score),True,(255,0,0))
scoreSurf = basic_font.render("分数:"+str(score),True,(255,255,255))
screen.blit(scoreSurf,(850,20))
scoreSurf = basic_font.render("第1名:"+str(one),True,(255,255,255))
screen.blit(scoreSurf,(850,50))
scoreSurf = basic_font.render("第2名:"+str(two),True,(255,255,255))
screen.blit(scoreSurf,(850,80))
scoreSurf = basic_font.render("第3名:"+str(three),True,(255,255,255))
screen.blit(scoreSurf,(850,110))
# 刷新画面
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