Commit 863c7565 by BellCodeEditor

save project

parent f9526681
Showing with 3 additions and 3 deletions
......@@ -60,12 +60,12 @@ while True:
exit()
if event.type == locals.KEYDOWN:
if event.key == locals.K_RIGHT: # 向右
center[1] =center[1]+1
center[1] =center[1]+1
if check(center)==False:
center[1] =center[1]+1
center[1] =center[1]-1
elif event.key == locals.K_LEFT: # 向左
center[1] =center[1]-1
center[1] =center[1]-1
if check(center)==False:
center[1] =center[1]+1
elif event.key == locals.K_DOWN: # 向下
......
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