Commit a97c3786 by BellCodeEditor

auto save

parent de509fba
Showing with 6 additions and 1 deletions
......@@ -88,11 +88,16 @@ while True:
# center[1] = center[1]+1 #就将中心点的位置往右移1列
# break
elif event.key == locals.K_DOWN: # 向下
center[0] = center[0]+1 #先让中心点向下移动1列
if cleck(center) == False:
center[0] = center[0]-1
#实现俄罗斯方块变形,并且防止在边缘变形是超出网格范围
elif event.key == locals.K_UP: # 向上
old_index = index #先将原来索引备份下来
......
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