Commit 9243499a by BellCodeEditor

auto save

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