Commit 6b85c9bc by BellCodeEditor

save project

parent 6d6ff720
Showing with 14 additions and 2 deletions
......@@ -6,7 +6,20 @@ pygame.init()
# 创建一个窗口
screen=pygame.display.set_mode((660,480))
a=pygame.image.load('bg.png')
b=pygame.image.load('right.png')
c=pygame.image.load('apple.png')
d=pygame.image.load('body.png')
while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
\ No newline at end of file
exit()
screen.blit(a,(0,0))
screen.blit(b,(240,120))
screen.blit(d,(210,120))
screen.blit(d,(180,120))
screen.blit(d,(180,90))
screen.blit(c,(360,300))
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