Commit 630bd233 by BellCodeEditor

save project

parent 808e57d1
Showing with 4 additions and 0 deletions
......@@ -10,6 +10,7 @@ grid_num_height = 25 # 纵向格子数量
FPS = 30 # 帧率
count = 0
states = False
gameover=False
num_list=[]
# 创建窗口
screen = pygame.display.set_mode((460, 500))
......@@ -138,9 +139,12 @@ while True:
else:
score+=1
num_list=new_list
if num_list[1][7]!=0
gameover=True
# 得分
text_surface = font.render(str(score), True, (0, 0, 0))
screen.blit(text_surface, (350,70))
# 刷新画面
if gameover
pygame.display.update()
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