Commit c4d26884 by BellCodeEditor

auto save

parent da20cb36
Showing with 2 additions and 2 deletions
...@@ -45,7 +45,7 @@ while True: ...@@ -45,7 +45,7 @@ while True:
if event.key == locals.K_DOWN and setheading != "up": if event.key == locals.K_DOWN and setheading != "up":
setheading = 'down' setheading = 'down'
snake_head = down snake_head = down
# 设置贪吃蛇的头部坐标 # 设置贪吃蛇的头部坐标
if setheading == "right": if setheading == "right":
x += 30 x += 30
...@@ -55,7 +55,7 @@ while True: ...@@ -55,7 +55,7 @@ while True:
y -= 30 y -= 30
elif setheading == "down": elif setheading == "down":
y += 30 y += 30
elif setheading == "A": elif setheading == "a":
y = 0 y = 0
position.append((x, y)) position.append((x, y))
......
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