Commit 01bdec43 by BellCodeEditor

save project

parent 5fdaa3f4
Showing with 7 additions and 6 deletions
...@@ -132,15 +132,15 @@ while True: ...@@ -132,15 +132,15 @@ while True:
for j in range(grid_num_width): for j in range(grid_num_width):
if numlist[i][j]==0: if numlist[i][j]==0:
isfull=False isfull=False
if isfull==False: if isfull==False:
newlist[rowindex]=numlist[i] newlist[rowindex]=numlist[i]
rowindex-=1 rowindex-=1
else: else:
score+=1 score+=1
numlist=newlist numlist=newlist
# 得分 # 得分
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)
\ 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