Commit 9eb02c03 by BellCodeEditor

save project

parent a81ecee2
Showing with 6 additions and 4 deletions
...@@ -11,16 +11,18 @@ right = pygame.image.lode('right.png') ...@@ -11,16 +11,18 @@ right = pygame.image.lode('right.png')
food = pygame.image.lode('apple.png') food = pygame.image.lode('apple.png')
body = pygame.image.lode('body.png') body = pygame.image.lode('body.png')
x, y = 240, 120 x, y = 240, 120
position = [(180, 90), (180, 120), (210, 120), (x, y)]
while True: while True:
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 x += 30
position.append((x, y))
posiyion.pop(0)
screen.blit(background, (0, 0)) screen.blit(background, (0, 0))
screen.blit(right, (x, y)) screen.billt(right, pasition(-1))
screen.blit(body, (210, 120))
screen.blit(body, (180, 120))
screen.blit(body,(180,90))
screen.blit(fodd,()) screen.blit(fodd,())
......
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