Commit 227758cc by BellCodeEditor

save project

parent d18ba35e
Showing with 11 additions and 0 deletions
...@@ -6,8 +6,19 @@ pygame.init() ...@@ -6,8 +6,19 @@ pygame.init()
# 创建一个窗口 # 创建一个窗口
screen=pygame.display.set_mode((660,480)) screen=pygame.display.set_mode((660,480))
a=pygame.image.load("bg.png")
b=pygame.image.load('body.png')
c=pygame.image.load('right.png')
d=pygame.image.load('apple.png')
while True : while True :
for event in pygame.event.get(): for event in pygame.event.get():
if event.type==locals.QUIT: if event.type==locals.QUIT:
exit exit
screen.blit(a,(0,0))
screen.blit(b,(210,120))
screen.blit(b,(180,120))
screen.blit(b,(180,90))
screen.blit(d,(180,210))
screen.blit(c,(180,150))
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