Commit 7324fe70 by BellCodeEditor

save project

parent 9a178a2b
Showing with 13 additions and 4 deletions
...@@ -6,17 +6,26 @@ bg=pygame.image.load("bg.png") ...@@ -6,17 +6,26 @@ bg=pygame.image.load("bg.png")
apple=pygame.image.load("apple.png") apple=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=240,120
FPSCLOCK=pygame.time.Clock()
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
print(event.type) print(event.type)
if event.type== locals.QUIT: if event.type== locals.QUIT:
exit() exit()
screen.blit(bg,(0,0)) screen.blit(bg,(0,0))
screen.blit(apple,(50,100)) screen.blit(apple,(550,550))
screen.blit(right,(100,100)) screen.blit(right,(x,y))
screen.blit(bodyright,(10,100)) x+=1.3
screen.blit(body,(x-30,y))
screen.blit(body,(x-60,y))
screen.blit(body,(x-90,y))
screen.blit(body,(x-120,y))
pygame.display.update() pygame.display.update()
FPSCLOCK.tick(60)
......
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