Commit 8e820782 by BellCodeEditor

save project

parent 885e6e1b
Showing with 6 additions and 3 deletions
......@@ -5,9 +5,9 @@ pygame.init()
background=pygame.image.load('bg.png')
right=pygame.image.load('right.png')
body=pygame.image.load('body.png')
apple=pygame.image.load('apple.png')
a=pygame.image.load('apple.png')
# 创建一个窗
screen=pygame.display.set_mode((660,480))
screen=pygame.display.set_mode((640,480))
while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
......@@ -17,7 +17,10 @@ while True:
screen.blit(body,(210,120))
screen.blit(body,(210,120))
screen.blit(body,(210,120))
screen.blit(apple,(180,90))
screen.blit(a,(0,0))
screen.blit(a,(640,480))
screen.blit(a,(640,0))
screen.blit(a,(0,480))
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