Commit bce2c644 by BellCodeEditor

save project

parent f41fd146
Showing with 7 additions and 4 deletions
......@@ -6,17 +6,19 @@ b=pygame.image.load('body.png')
a=pygame.image.load("apple.png")
x,y=(450,240)
FPS=pygame.time.Clock()
c=[(420,180),(450,210),(450,180),(x,y)]
while True:
screen=pygame.display.set_mode((660,480))
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
x+=30
c.append((x,y))
c.pop(0)
screen.blit(bg,(0,0))
screen.blit(r,(x,y))
screen.blit(b,(450,210))
screen.blit(b,(450,180))
screen.blit(b,(420,180))
screen.blit(r,c[-1])
for i in range(len(c)-1):
screen.blit(b,c[i])
screen.blit(a,(450,300))
pygame.display.update()
FPS.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