Commit 01e1b671 by BellCodeEditor

auto save

parent 0090fca8
Showing with 2 additions and 1 deletions
......@@ -52,13 +52,14 @@ while True:
y -= 30
else:
y += 30
if x==ax and y==ay:
if x==ax and y==ay:
sx=random.randint(1,22)
sy=random.randint(1,16)
ax=sx*30-30
ay=sy*30-30
else:
position.pop(0)
position.append((x, y))
# 将背景图画上去
screen.blit(background, (0, 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