Commit 80184bd4 by BellCodeEditor

auto save

parent d5739bd2
Showing with 2 additions and 1 deletions
......@@ -41,7 +41,8 @@ while True:
if event.key == locals.K_DOWN and setheading != "up":
setheading = 'down'
snake_head = down
if x == apple_x and y == apple_y
apple_x==rand
# 设置贪吃蛇的头部坐标
if setheading == "right":
x += 30
......
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