Commit a8375ba1 by BellCodeEditor

save project

parent fc6e70a2
Showing with 7 additions and 10 deletions
...@@ -7,19 +7,16 @@ pygame.init() ...@@ -7,19 +7,16 @@ pygame.init()
screen=pygame.display.set_mode((660,480)) screen=pygame.display.set_mode((660,480))
background=pygame.image.load('bg.png') background=pygame.image.load('bg.png')
right=pygame.image.load('right.png') right=pygame.image.load('right.png')
apple=pygame.image.load('apple.png')
body=pygame.image.load('body.png') body=pygame.image.load('body.png')
food=pygame.image.load('apple.png')
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
print(event) print(event)
if event.type == locals.QUIT: if event.type == locals.QUIT:
exit() exit()
screen.blit(background,(0,0)) screen.blit(background,(0,0))
screen.blit(right,(240,180)) screen.blit(right,(240,360))
screen.blit(apple,(360,420)) screen.blit(food,(330,420))
screen.blit(body,(210,180)) screen.blit(body,(210,360))
screen.blit(body,(180,180)) screen.blit(body,(180,360))
screen.blit(body,(150,180)) screen.blit(body,(150,360))
\ No newline at end of file
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