Commit 84e6df9b by BellCodeEditor

save project

parent 7a8e471b
Showing with 11 additions and 0 deletions
...@@ -4,9 +4,19 @@ pygame.init() ...@@ -4,9 +4,19 @@ pygame.init()
bj=pygame.image.load('bg.png') bj=pygame.image.load('bg.png')
st=pygame.image.load('right.png') st=pygame.image.load('right.png')
pg=pygame.image.load('apple.png') pg=pygame.image.load('apple.png')
a=pygame.image.load('body.png')
while True: while True:
for event in pygame.event.get():
print(event)
if event.type==locals.QUIT:
exit()
screen=pygame.display.set_mode((800,600)) screen=pygame.display.set_mode((800,600))
screen.blit(bj,(0,0)) screen.blit(bj,(0,0))
screen.blit(st,(210,180)) screen.blit(st,(210,180))
screen.blit(pg,(270,240)) screen.blit(pg,(270,240))
screen.blit(a,(180,180))
screen.blit(a,(150,180))
screen.blit(a,(150,150))
screen.blit(a,(120,150))
screen.blit(a,(120,120))
pygame.display.update() 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