Commit 7e0cb400 by BellCodeEditor

save project

parent 6f29660c
Showing with 5 additions and 7 deletions
......@@ -22,13 +22,11 @@ while True:
x += 30
po.append((x,y))
po.pop(0)
# 将背景图画上去
screen.blit(background, (0,0))
# 将贪吃蛇画上去
screen.blit(right,(po[-1]))
# 将贪吃蛇的身体画上去
for i in range(len(po)-1):
screen.blit(body,po[i])
screen.blit(background,(0,0))
screen.blit(right,(po[3]))
screen.blit(body,(po[2]))
screen.blit(body,(po[1]))
screen.blit(body,(po[0]))
# 将果实画上去
screen.blit(food, (360, 300))
# 刷新画面
......
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