Commit c23404f7 by BellCodeEditor

save project

parent ad8e3333
Showing with 299 additions and 2 deletions
......@@ -11,8 +11,9 @@ background=pygame.image.load("bg.png")
right=pygame.image.load("right.png")
food=pygame.image.load("apple.png")
body=pygame.image.load("body.png")
x,y=240,120
a=[(180,90),(180,120),(210,120),(x,y)]
while True:
for event in pygame.event.get():
......@@ -21,8 +22,10 @@ while True:
x+=30
a.append((x,y))
a.pop(0)
screen.blit(background,(0,0))
screen.blit(right,(x,y))
screen.blit(right,a
screen.blit(body,(210,120))
screen.blit(body,(180,120))
screen.blit(body,(180,90))
......@@ -900,3 +903,297 @@ while True:
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