Commit c129a4aa by BellCodeEditor

auto save

parent a13cd486
Showing with 0 additions and 4 deletions
...@@ -18,8 +18,6 @@ up = pygame.image.load('up.png') # 头 朝上 ...@@ -18,8 +18,6 @@ up = pygame.image.load('up.png') # 头 朝上
down = pygame.image.load('down.png') # 头 朝下 down = pygame.image.load('down.png') # 头 朝下
x, y = 240, 120 x, y = 240, 120
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locals.QUIT: if event.type == locals.QUIT:
...@@ -30,8 +28,6 @@ while True: ...@@ -30,8 +28,6 @@ while True:
# 将贪吃蛇的头画上去 # 将贪吃蛇的头画上去
screen.blit(snake_head, position[-1]) screen.blit(snake_head, position[-1])
# 将贪吃蛇的身体画上去 # 将贪吃蛇的身体画上去
for i in range(len(position)-1):
screen.blit(body, position[i])
# 将果实画上去 # 将果实画上去
screen.blit(food, (360, 300)) 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