Commit 1ecd4739 by BellCodeEditor

auto save

parent dbd13726
Showing with 9 additions and 9 deletions
...@@ -22,16 +22,16 @@ while True: ...@@ -22,16 +22,16 @@ while True:
# 接收到退出事件后退出程序 # 接收到退出事件后退出程序
exit() exit()
# 将背景图画上去 # 将背景图画上去
if setheading == locals.K_LEFT and sethding != "left": if setheading == locals.K_LEFT and setheading != "left":
setheading ='left' setheading ='left'
if setheading == locals.K_UP and sethding != "right": if setheading == locals.K_UP and setheading != "right":
setheading ='up' setheading ='up'
if setheading == locals.K_DOWN and sethding != "down": if setheading == locals.K_DOWN and setheading != "down":
setheading = 'down' setheading = 'down'
if setheading == locals.K_RIGHT and sethding != "left": if setheading == locals.K_RIGHT and setheading != "left":
setheading = 'right' setheading = 'right'
x +=30 x +=30
position.append((x,y)) position.append((x,y))
position.pop(0) position.pop(0)
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