Commit 15d097de by BellCodeEditor

save project

parent af16cddb
Showing with 6 additions and 0 deletions
...@@ -149,6 +149,11 @@ while True: ...@@ -149,6 +149,11 @@ while True:
# 得分 # 得分
text_surface = font.render(str(score), True, (0, 0, 0)) text_surface = font.render(str(score), True, (0, 0, 0))
screen.blit(text_surface, (350,70)) screen.blit(text_surface, (350,70))
if gameover == True:
text =font_restart.render("游戏失败,按任意键开始。"True,(0,0,0))
screen.blit(text_,(20,250))
score=0
num_list
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
clock.tick(FPS) clock.tick(FPS)
\ 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