Commit b19ecf7d by BellCodeEditor

auto save

parent 8a8e3a73
Showing with 0 additions and 3 deletions
...@@ -10,7 +10,6 @@ grid_num_height = 25 # 纵向格子数量 ...@@ -10,7 +10,6 @@ grid_num_height = 25 # 纵向格子数量
FPS = 30 # 帧率 FPS = 30 # 帧率
count = 0 count = 0
states = False states = False
gameover=False
# 创建窗口 # 创建窗口
screen = pygame.display.set_mode((460, 500)) screen = pygame.display.set_mode((460, 500))
...@@ -89,7 +88,6 @@ while True: ...@@ -89,7 +88,6 @@ while True:
if check(center) == False: if check(center) == False:
index = old_index index = old_index
current_shape = shape[index] current_shape = shape[index]
if gameover==False:
if states == False: if states == False:
states = True states = True
...@@ -127,7 +125,6 @@ if gameover==False: ...@@ -127,7 +125,6 @@ if gameover==False:
# 得分 # 得分
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))
# 刷新画面 # 刷新画面
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