Commit 65d30363 by BellCodeEditor

auto save

parent b13a65b5
Showing with 4 additions and 1 deletions
......@@ -8,7 +8,7 @@ grid_num_width = 15 # 横向格子数量
grid_num_height = 25 # 纵向格子数量
FPS = 30
center=[1,1]
current_shape=[[0,-1],[0,0],[0,1],[-1,0]]
# 创建窗口
screen = pygame.display.set_mode((460, 500))
pygame.display.set_caption("俄罗斯方块")
......@@ -34,6 +34,9 @@ while True:
center[0]+=1
screen.blit(background,(0,0))
current_pos=[]
for cube in current_shape:
pos=(center[0]+)
pygame.draw.rect(screen,(255,0,0),(center[1]*20-20,center[0]*20-20,20,20),0)
pygame.draw.rect(screen,(255,255,255),(center[1]*20-20,center[0]*20-20,20,20),0)
# 得分
......
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