Commit 0189dbcd by BellCodeEditor

save project

parent 9aa0ca31
Showing with 2 additions and 2 deletions
...@@ -7,7 +7,7 @@ grid_size = 20 # 格子大小 ...@@ -7,7 +7,7 @@ grid_size = 20 # 格子大小
grid_num_width = 15 # 横向格子数量 grid_num_width = 15 # 横向格子数量
grid_num_height = 25 # 纵向格子数量 grid_num_height = 25 # 纵向格子数量
FPS = 30 FPS = 30
center=[2,0] center=[2,8]
# 创建窗口 # 创建窗口
screen = pygame.display.set_mode((460, 500)) screen = pygame.display.set_mode((460, 500))
pygame.display.set_caption("俄罗斯方块") pygame.display.set_caption("俄罗斯方块")
...@@ -37,7 +37,7 @@ while True: ...@@ -37,7 +37,7 @@ while True:
# 得分 # 得分
j=[] j=[]
for wz in cai: for wz in cai:
aa=(wz[0]+cai[0],wz[1]+cai[1]) aa=(wz[0]+center[0],wz[1]+center[1])
j.append(aa) j.append(aa)
# 刷新画面 # 刷新画面
ss=font.render(str(score),True,(0,0,0)) ss=font.render(str(score),True,(0,0,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