Commit 49ac77f4 by BellCodeEditor

auto save

parent 3283f6d0
Showing with 2 additions and 3 deletions
...@@ -35,11 +35,10 @@ while True: ...@@ -35,11 +35,10 @@ while True:
if event.key == locals.K_DOWN: if event.key == locals.K_DOWN:
if center[0] < 25: if center[0] < 25:
center[0]=center[0]+1 center[0]=center[0]+1
pygame.draw.rectpygame.draw.rect(Surface,color,rect,width = 0) pygame.draw.rect(Surface,color,rect,width = 0)
# 将背景图画上去 # 将背景图画上去
screen.blit(background,(0,0)) screen.blit(background,(0,0))
pygame.draw.rect(screen,(255,0,0),(120,20,20,20),0) pygame.draw.rect
pygame.draw.rect(screen,(255,255,255),(120,20,20,20),1)
curr_pos = [] curr_pos = []
for cube in curr_shape: for cube in curr_shape:
aa = (cube[0] + center[0],cube[1] + center[1]) aa = (cube[0] + center[0],cube[1] + center[1])
......
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