Commit 55ad9600 by BellCodeEditor

save project

parent 4d37dea2
Showing with 2 additions and 2 deletions
...@@ -12,7 +12,7 @@ count = 0 ...@@ -12,7 +12,7 @@ count = 0
states = False states = False
num_list=[] num_list=[]
for i in range(25): for i in range(25):
num_list.append([0]*25) num_list.append([0]*15)
# 创建窗口 # 创建窗口
screen = pygame.display.set_mode((460, 500)) screen = pygame.display.set_mode((460, 500))
pygame.display.set_caption("俄罗斯方块") pygame.display.set_caption("俄罗斯方块")
...@@ -57,7 +57,7 @@ def check(center): ...@@ -57,7 +57,7 @@ def check(center):
or cube[1] >grid_num_width: or cube[1] >grid_num_width:
return False return False
if num_list[cube[0]-1][cube[0]-1]!=0: if num_list[cube[0]-1][cube[0]-1]!=0:
return False
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locals.QUIT: if event.type == locals.QUIT:
......
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