Commit 92453317 by BellCodeEditor

save project

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