Commit 36c61480 by BellCodeEditor

save project

parent 0c45f0e9
Showing with 4 additions and 0 deletions
......@@ -46,15 +46,19 @@ while True:
if setheading == "right":
headX += 30
# 将贪吃蛇画上去
screen.blit(right, position[0])
elif setheading == "left":
headX -= 30
# 将贪吃蛇画上去
screen.blit(left, position[0])
elif setheading == "up":
headY += 30
# 将贪吃蛇画上去
screen.blit(up, position[0])
elif setheading == "down":
headY -= 30
# 将贪吃蛇画上去
screen.blit(down, position[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