Commit 9243499a by BellCodeEditor

auto save

parent 30b97f6e
Showing with 3 additions and 7 deletions
......@@ -97,13 +97,8 @@ while True:
if index >= len(shape):
index = 0
current_shape = shape[index]
if check(xy) == False:
# 将背景图画上去
screen.blit(background,(0,0))
# if check(xy) == False:
shape_pos = []
for cube in current_shape:
pos = (cube[0]+xy[0],cube[1]+xy[1])
......@@ -112,6 +107,7 @@ while True:
pygame.draw.rect(screen,color,(cube[1]*20-20,(cube[0]-1)*20,20,20),0)
pygame.draw.rect(screen,(255,255,255),(cube[1]*20-20,(cube[0]-1)*20,20,20),1)
# 得分
screen.blit(background,(0,0))
screen.blit(app,(340,80))
# 刷新画面
pygame.display.update()
......
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