Commit d5729c65 by BellCodeEditor

save project

parent 7d450a17
Showing with 2 additions and 11 deletions
......@@ -41,17 +41,8 @@ while True:
if setheading=="right":
x +=30
elif setheading=="left":
x -=30
elif setheading=="up":
y -=30
else:
y +=30
h.append((x,y))
h.pop(0)
# 将背景图画上去
screen.blit(background, (0, 0))
# 将贪吃蛇画上去
screen.blit(g,h[-1])
x -=3
# 将贪吃蛇的身体画上去
for i in range(len(h)-1):
screen.blit(body,h[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