Commit 111cc775 by BellCodeEditor

save project

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