Commit 6cf438d0 by BellCodeEditor

save project

parent 874ac656
Showing with 1 additions and 3 deletions
......@@ -49,14 +49,12 @@ while True:
y+=30
if setheading=="up":
y-=30
x += 30
p.append((x,y))
p.pop(0) #
# 将背景图画上去
screen.blit(background, (0, 0))
# 将贪吃蛇画上去
screen.blit(right, (x, y)) #
screen.blit(look, (x, y)) #
# 将贪吃蛇的身体画上去
for i in range(len(p)-1):
screen.blit(body, p[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