Commit 8d7fef96 by BellCodeEditor

save project

parent e539434c
Showing with 4 additions and 4 deletions
...@@ -25,14 +25,14 @@ while True: ...@@ -25,14 +25,14 @@ while True:
j.append((x,y)) j.append((x,y))
j.pop(0) j.pop(0)
screen.blit(background, (0, 0)) screen.blit(background, (0, 0))
# 将贪吃蛇画上去 # 将贪吃蛇画上去
screen.blit(right, j[3]) screen.blit(right, j[3])
# 将贪吃蛇的身体画上去 # 将贪吃蛇的身体画上去
screen.blit(body, j[2]) for i in range(len(j)-1):
screen.blit(body, j[1]) screen.blit(body,j[i])
screen.blit(body, j[0])
# 将果实画上去
screen.blit(food, (360, 300)) screen.blit(food, (360, 300))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
......
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