Commit 61322e16 by BellCodeEditor

save project

parent 5b36098e
Showing with 9 additions and 6 deletions
......@@ -11,17 +11,20 @@ right=pygame.image.load("right.png")
apple=pygame.image.load("apple.png")
body=pygame.image.load("body.png")
x,y =240,120
xy =[(180,90),(180,120),(210,120),(x,y)]
while True:
for a in pygame.event.get():
if a.type==locals.QUIT:
exit()
x +=30
xy.append((x,y))
xy.pop(0)
screen.blit(s,(0,0))
screen.blit(right,(x,y))
x +=30
clock.tick(3)
screen.blit(apple,(210,90))
screen.blit(body,(210,120))
screen.blit(body,(180,120))
screen.blit(body,(150,120))
for i in range(len(xy)- 1):
screen.blit(body,xy[i])
pygame.display.update()
clock.tick(3)
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