Commit e368d31d by BellCodeEditor

save project

parent a3fd5f10
Showing with 7 additions and 5 deletions
...@@ -10,16 +10,17 @@ food=pygame.image.load('apple.png') ...@@ -10,16 +10,17 @@ food=pygame.image.load('apple.png')
right=pygame.image.load('right.png') right=pygame.image.load('right.png')
body=pygame.image.load('body.png') body=pygame.image.load('body.png')
x,y=120,240 x,y=120,240
zuobiao=[(180,90),(180,120),(210,120),(x,y)]
zuobiao.pop(0)
while True: while True:
x+=30
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locals.QUIT: if event.type == locals.QUIT:
exit() exit()
x+=30
screen.blit(blackground,(0,0)) screen.blit(blackground,(0,0))
screen.blit(right,(x,y)) screen.blit(right,zuobiao[-1])
screen.blit(food,(360,300)) screen.blit(food,(360,300))
screen.blit(body,(210,120)) for i in range(len(zuobio)-1):
screen.blit(body,(180,120))
screen.blit(body,(180,90))
FSPCLOCK.tick(3) FSPCLOCK.tick(3)
pygame.display.update() pygame.display.update()
\ 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