Commit e7002cda by BellCodeEditor

save project

parent e54c4ea3
Showing with 5 additions and 0 deletions
...@@ -44,6 +44,11 @@ while True: ...@@ -44,6 +44,11 @@ while True:
# 将背景图画上去 # 将背景图画上去
screen.blit(background,(0,0)) screen.blit(background,(0,0))
current_shape = []
for cube in current_shape:
pos = (cobe[0]+center[0],cube[1]+center[1])
current_pos.append(pos)
# #
pygame.draw.rect(screen,(255,0,0),(140,20,20,20),0) pygame.draw.rect(screen,(255,0,0),(140,20,20,20),0)
pygame.draw.rect(screen,(255,255,255),(140,20,20,20),1) pygame.draw.rect(screen,(255,255,255),(140,20,20,20),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