Commit caaa966a by BellCodeEditor

auto save

parent 3dbf37ef
Showing with 4 additions and 3 deletions
......@@ -54,7 +54,7 @@ def check(center):
cube=(cube[0] + center[0], cube[1] + center[1])
if cube[0]<1 or cube[1]<1 or cube[0]>25 or cube[1]>15:
return False
if num_list[cube[0]-1][cube[1]-1] != 0:
if num_list[cube[0]-1][cube[1]-1]!=0:
return False
......@@ -124,7 +124,7 @@ while True:
row_index=24
for i in range(24,-1,-1):
full=True
for j in range(15):
for j in range(grid_num_width):
if num_list[i][j]==0:
full=False
if full==False:
......@@ -137,5 +137,5 @@ while True:
text_surface = font.render(str(score), True, (0, 0, 0))
screen.blit(text_surface, (350,70))
# 刷新画面
pygame.display.update()
clock.tick(FPS)
pygame.display.update()
\ 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