Commit 23009cd7 by BellCodeEditor

auto save

parent e69b6f66
Showing with 5 additions and 4 deletions
......@@ -43,18 +43,19 @@ while True:
# 将背景图画上去
screen.blit(background, (0, 0))
# 将贪吃蛇画上去
if setheading == "right":
if setheading=="right":
x+=30
elif setheading == "left":
elif setheading=="left":
x-=30
elif setheading == "down":
elif setheading=="down":
y+=30
else:
y-=30
a.append((x,y))
a.pop(0)
# 将贪吃蛇的身体画上去
screen.blit(snakehead, a[-1])
screen.blit(snakehead , a[-1])
for i in range(len(a)-1):
screen.blit(body,a[i])
# 将果实画上去
......
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