Commit 111cc775 by BellCodeEditor

save project

parent f68f4f11
Showing with 12 additions and 7 deletions
......@@ -5,14 +5,19 @@ pygame.init()
# 创建一个窗口
screen=pygame.display.set_mode((660,480))
background=pygame.image.load('bg.png')
background=pygame.image.load('apple.png')
background=pygame.image.load('right.png')
background1=pygame.image.load('bg.png')
background2=pygame.image.load('apple.png')
background3=pygame.image.load('right.png')
body=pygame.image.load('body.png')
while True:
for event in pygame.event.get():
print(event)
if event.type==locals.QUIT:
exit()
background=pygame.image.load('')
background=pygame.image.load('apple.png')
background=pygame.image.load('right.png')
\ No newline at end of file
screen.blit(background1,(0,0))
screen.blit(background2,(30,120))
screen.blit(background3,(150,30))
screen.blit(body,(60,30))
screen.blit(body,(90,30))
screen.blit(body,(120,30))
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