Commit 76c84ea7 by BellCodeEditor

save project

parent 52541840
Showing with 8 additions and 4 deletions
......@@ -8,9 +8,13 @@ grid_size = 20 # 格子大小
grid_num_width = 15 # 横向格子数量
grid_num_height = 25 # 纵向格子数量
FPS = 30
xy = [2,8]
center = [(0,-1),(0,0),(0,1),(-1,0)]
center2 = [(0,-1),(0,-2),(0,0),(0,1)]
xy = [10,8]
center = [(0,-1),(0,0),(0,1),(-1,0)] #T
center2 = [(0,-1),(0,-2),(0,0),(0,1)] #横排4
center3 = [(-2,0),(-1,0),(0,0),(0,1)] #L
center4 = [(-1,0),(0,0),(0,1),(1,1)] #N
center5 = [(-1,0),(0,0),(-1,1),(0,1)] #田
# 创建窗口
screen = pygame.display.set_mode((460, 500))
pygame.display.set_caption("俄罗斯方块")
......@@ -35,7 +39,7 @@ while True:
xy[0] += 1
list_pos = []
for cube in center2:
for cube in center5:
pos = (cube[0] + xy[0],cube[1] + xy[1])
list_pos.append(pos)
#print(list_pos)
......
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