Commit 9bc617d8 by BellCodeEditor

save project

parent ee4649f0
Showing with 16 additions and 0 deletions
......@@ -122,6 +122,22 @@ while True:
if colors != 0:
pygame.draw.rect(screen, colors,(j * 20-20, i * 20-20, 20, 20))
pygame.draw.rect(screen, (255, 255, 255),(j * 20-20, i * 20-20, 20, 20), 1)
xchlb=[]
for i in range(25):
xchlb.append([0]*15)
hl=24
for i in range(24,-1,-1):
mlm=1
for j in range(grid_num_width):
if numlb[i][j]==0:
mlm=0
if mlm==0:
xchlb[hl]=numlb[i]
hl-=1
else:
score+=1
numlb=xchlb
# 得分
text_surface = font.render(str(score), True, (0, 0, 0))
screen.blit(text_surface, (350,70))
......
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