Commit 51ff0f53 by BellCodeEditor

auto save

parent e60373a8
Showing with 9 additions and 0 deletions
......@@ -57,6 +57,7 @@ gamestate = True
block_list =pygame.sprite.Group() # 创建精灵组
old_score=0
score=0
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......@@ -129,9 +130,17 @@ while True:
score_audio.plasy(
old_score = score
scoresSurf = basic.font.render("分shushu")
scoreSurf = basic_font.render("分数:"+str(score),True,(255,0,0))
screen.blit(scoreSurf,(850,20))
scoreSurf = basic_font.render("第一名:"+str(one),True,(255,0,0))
screen.blit(scoreSurf,(850,20))
scoreSurf = basic_font.render("第二名:"+str(two),True,(255,0,0))
screen.blit(scoreSurf,(850,20))
scoreSurf = basic_font.render("第三名:"+str(thr),True,(255,0,0))
screen.blit(scoreSurf,(850,20))
# 刷新画面
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