Commit 29e100f3 by BellCodeEditor

save project

parent d5739bd2
Showing with 11 additions and 0 deletions
...@@ -66,3 +66,13 @@ while True: ...@@ -66,3 +66,13 @@ while True:
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
FPSCLOCK.tick(3) FPSCLOCK.tick(3)
screen.blit(snake_head,position[-1])
for i in range(len(position)-1):
screen.blit(body,position[i])
screen.blit(food.(apple_x,apple_y))
pygame.display.update()
FPSCLOCK.tick(3)
\ No newline at end of file
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