Commit 93d59029 by BellCodeEditor

save project

parent ac37bc83
Showing with 3 additions and 3 deletions
......@@ -64,7 +64,7 @@ while True:
if event.type == locals.KEYDOWN:
if event.key == locals.K_LEFT: # 向右
center[1] = center[1] -1
if check(center) == Fales:
if check(center) == False:
center[1] = center[1] + 1
elif event.key == locals.K_RIGHT: # 向左
......@@ -86,8 +86,8 @@ while True:
count += 1
if count % FPS == 0:
center][0] = center[0] + 1
if check(center) == Fales:
center[0] = center[0] + 1
if check(center) == False:
center[0] = center[0] -1
# 将背景图画上去
screen.blit(background, (0, 0))
......
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