Commit 9d111bbe by BellCodeEditor

save project

parent f7f39d89
Showing with 9 additions and 0 deletions
...@@ -34,6 +34,15 @@ while True: ...@@ -34,6 +34,15 @@ while True:
# 将背景图画上去 # 将背景图画上去
screen.bilt(background,(0,0)) screen.bilt(background,(0,0))
cureent_pos= []
for cube in cureent_shape:
pos = (cube[0] + cemter[0 cube[1] + center[1])
curret pos.append(pos)
for cube in current_shape:
pygame.draw.rect(screen,(255,0,0)),
(cube[1] * 20-20, cube[0]*20-20,20,20),0)
pygame.draw.rect(screen,(255,0,0),(120,20,20,20),0) pygame.draw.rect(screen,(255,0,0),(120,20,20,20),0)
pygame.draw.rect(screen,(255,255,255),(120,20,20,20),1) pygame.draw.rect(screen,(255,255,255),(120,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