Commit eb325404 by BellCodeEditor

save project

parent cd6e32e7
Showing with 7 additions and 6 deletions
......@@ -4,7 +4,7 @@ from pygame import locals
pygame.init()
background=pygame.image.load("bg.png")
food=pygame.image.load("apple.png")
body=pygame.image.load("bg.png")
body=pygame.image.load("body.png")
up=pygame.image.load("up.png")
down=pygame.image.load("down.png")
left=pygame.image.load("left.png")
......@@ -15,11 +15,11 @@ while True:
if event.type == locals.QUIT:
exit()
screen.blit(background,(0,0))
screen.blit(food,(120,111))
screen.blit(left,(222,333))
screen.blit(body,(444,555))
screen.blit(body,(660,213))
screen.blit(body,(123,369))
screen.blit(food,(120,90))
screen.blit(left,(60,330))
screen.blit(body,(60,300))
screen.blit(body,(60,270))
screen.blit(body,(60,240))
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