Commit 8a34cee6 by BellCodeEditor

auto save

parent be46eb0a
Showing with 2 additions and 4 deletions
......@@ -64,10 +64,8 @@ while True:
if event.type == locals.KEYDOWN:
if event.key == locals.K_LEFT: # 向左
center[1] = center[1] - 1
for cube in current_pos:
if cube[1] <= 1:
center[1] = center[1] + 1
break
if check(center) == False:
center[1] = center[1] + 1
elif event.key == locals.K_RIGHT: # 向右
if center[1] < 15:
center[1] += 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