Commit a0f70684 by BellCodeEditor

save project

parent 79606f94
Showing with 8 additions and 1 deletions
......@@ -8,13 +8,20 @@ screen = pygame.display.set_mode((660,480))
food = pygame.image.load("apple.png")
background = pygame.image.load("bg.png")
right = pygame.image.load("right.png")
x,y=300,240
body=pygame.image.load("body.png")
x,y=210,120
l=[(210,120),(180,120),(180,90),(x,y)]
while True:
x+=30
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
l.append((x,y))
l.pop(0)
screen.blit(background,(0,0))
for i in range(len(l)-1):
screen.blit(body,l[i])
screen.blit(food,(360,300))
screen.blit(right,(x,y))
pygame.display.update()
......
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