Commit c1481103 by BellCodeEditor

save project

parent 6335a11d
Showing with 7 additions and 0 deletions
...@@ -152,6 +152,13 @@ num_list = new_list ...@@ -152,6 +152,13 @@ num_list = new_list
# 得分 # 得分
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("小逼崽子,你输了,重来吧!!!")
screen.blit(text,(20,250))
score = 0
num_list = []
for i in range(25):
num_list.append([0] * 15)
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
clock.tick(FPS) clock.tick(FPS)
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