Commit 25fa42aa by BellCodeEditor

save project

parent 18f35973
Showing with 4 additions and 2 deletions
......@@ -43,8 +43,10 @@ while True:
setheading = 'down'
snake_head = down
if ax==x and ay==y:
ax=random.randint(0,660)
ay=random.randint(0,480)
ax=random.randint(0,21)
ay=random.randint(0,15)
ax=ax*30
ay=ay*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