Commit 727df0d9 by BellCodeEditor

auto save

parent 256bc6f8
Showing with 6 additions and 2 deletions
......@@ -56,6 +56,8 @@ while True:
# 将背景图画上去
screen.blit(background, (0, 0))
# 将贪吃蛇的头画上去
if x=appie_x and y=apple_y:
x=rand
screen.blit(snake_head, position[-1])
# 将贪吃蛇的身体画上去
for i in range(len(position)-1):
......@@ -65,4 +67,6 @@ while True:
screen.blit(food, (360, 300))
# 刷新画面
pygame.display.update()
FPSCLOCK.tick(3)
\ No newline at end of file
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