Commit 91be81ff by BellCodeEditor

save project

parent 6b74b679
Showing with 4 additions and 4 deletions
...@@ -22,7 +22,7 @@ x,y=240,120 ...@@ -22,7 +22,7 @@ x,y=240,120
position=[(180,90),(180,120),(210,120),(x,y)] position=[(180,90),(180,120),(210,120),(x,y)]
setheading="right" setheading="right"
snack head=right snack_head=right
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
...@@ -47,13 +47,13 @@ while True: ...@@ -47,13 +47,13 @@ while True:
elif setheading=="left": elif setheading=="left":
x-=30 x-=30
elif setheading=="up": elif setheading=="up":
x-=30 y-=30
else: else:
x+=30 y+=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