Commit d8f8ca9b by BellCodeEditor

save project

parent 410a6813
Showing with 4 additions and 4 deletions
...@@ -24,11 +24,11 @@ while True: ...@@ -24,11 +24,11 @@ while True:
exit() exit()
if event.type == locals.KEYDOWN: if event.type == locals.KEYDOWN:
if event.key == locals.K_RIGHT: if event.key == locals.K_RIGHT:
CENTER[1] += 1 center[1] += 1
elif event.key == locals.K_LEFT: elif event.key == locals.K_LEFT:
CENTER[1] -= 1 center[1] -= 1
elif event.key == locals.KEYDOWN: elif event.key == locals.K_DOWN:
CENTER[0] += 1 center[0] += 1
# 将背景图画上去 # 将背景图画上去
screen.blit(background,(0,0)) 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