Commit 85d0a519 by BellCodeEditor

auto save

parent d5739bd2
Showing with 5 additions and 2 deletions
......@@ -58,6 +58,9 @@ while True:
# 将贪吃蛇的头画上去
screen.blit(snake_head, position[-1])
# 将贪吃蛇的身体画上去
if x == apple_x and apple_y
for i in range(len(position)-1):
screen.blit(body, position[i])
......@@ -65,4 +68,4 @@ while True:
screen.blit(food, (360, 300))
# 刷新画面
pygame.display.update()
FPSCLOCK.tick(3)
\ No newline at end of file
FPSCLOCK.tick(10)
\ 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