Commit 37bdb923 by BellCodeEditor

auto save

parent c99f1200
Showing with 2 additions and 2 deletions
......@@ -45,8 +45,8 @@ while True:
setheading = 'down'
snake_head = down
if apple_x==x and apple_y==y:
apple_x=random(0,360)
apple_y=random(0,300)
apple_x=30*random(0,360)-30
apple_y=30*random(0,300)-30
# 设置贪吃蛇的头部坐标
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