Commit 9de3ad32 by BellCodeEditor

auto save

parent 8e7a00b5
Showing with 18 additions and 0 deletions
...@@ -27,6 +27,24 @@ while True: ...@@ -27,6 +27,24 @@ while True:
if event.type == locals.QUIT: if event.type == locals.QUIT:
# 接收到退出事件后退出程序 # 接收到退出事件后退出程序
exit() exit()
if enent key
if setheading == "right":
x += 30
if setheading == "left":
x -= 30
if setheading == "up":
y -= 30
else:
y += 30
x+=30 x+=30
position.append((x,y)) position.append((x,y))
position.pop(0) position.pop(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