Commit eae2301e by BellCodeEditor

save project

parent d6717920
Showing with 9 additions and 5 deletions
......@@ -17,6 +17,8 @@ body = pygame.image.load('body.png')
x,y = 240,120
position = [(180,90),(180,120),(210,120),(x,y)]
while True:
for event in pygame.event.get():
......@@ -26,15 +28,17 @@ while True:
exit()
x += 30
screen.blit(background,(0,0))
position.append((x,y))
screen.blit(right,(x,y))
position.pop(0)
screen.blit(background,(0,0))
screen.blit(body,(210,120))
screen.blit(right,position[-1])
screen.blit(body,(180,120))
for i in range(len(position)-1):
screen.blit(body,(180,90))
screen.blit(body,position[i])
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