Commit d13fb2a8 by BellCodeEditor

save project

parent 45a94c3b
Showing with 8 additions and 2 deletions
...@@ -4,4 +4,11 @@ a=pygame.display.set_mode((800,600)) ...@@ -4,4 +4,11 @@ a=pygame.display.set_mode((800,600))
while True: while True:
for i in pygame.event.get(): for i in pygame.event.get():
if i.type==pygame.QUIT: if i.type==pygame.QUIT:
exit() exit()
\ No newline at end of file a.blit(pygame.image.load('bg.png'),(0,0))
a.blit(pygame.image.load('apple.png'),(90,120))
a.blit(pygame.image.load('left.png'),(210,150))
a.blit(pygame.image.load('body.png'),(240,150))
a.blit(pygame.image.load('body.png'),(270,150))
a.blit(pygame.image.load('body.png'),(270,180))
pygame.display.update()
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