Commit 855ffc70 by BellCodeEditor

save project

parent 2ac6d33f
Showing with 6 additions and 6 deletions
......@@ -68,11 +68,11 @@ while True:
center[1] -= 1
if check(center) == False:
center[1]+=1
elif event.key == locals.K_DOWN:
elif event.key == locals.K_DOWN: # 向下
center[0]+=1
if check(center) == False:
center[0]-=1
elif event.key == locals.K_UP:# 改变形状
elif event.key == locals.K_UP: # 改变形状
old_way=way
way +=1
if way >= len(shape):
......@@ -84,11 +84,11 @@ while True:
if states==False:
states=True
center=[2,8]
shape = random.choice(shape_list)# 形状
way = random.randint(0,len(shape)-1)# 方向
color = random.choice(cube_colors)# 颜色
shape = random.choice(shape_list) # 形状
way = random.randint(0,len(shape)-1) # 方向
color = random.choice(cube_colors) # 颜色
count += 1 # 向下
if count%FPS==0:# 减速公式
if count%FPS==0: # 减速公式
center[0] += 1
if check(center) == False:
center[0]-=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