Commit e9b63f5d by BellCodeEditor

save project

parent ca95b09c
Showing with 12 additions and 10 deletions
......@@ -6,18 +6,20 @@ pygame.init()
# 创建一个窗口
s1=pygame.display.set_mode((660,480))
beijing= pygame.image.load('bg.png')
right= pygame.image.load('right.pug')
apple= pygame.image.ioad('apple.png')
body= pygame.image. ioad('body.png')
right= pygame.image.load('right.png')
apple= pygame.image.load('apple.png')
body= pygame.image.load('body.png')
while True:
for event in pygame.event.get():
if eyent.type == locals.QUIT:
exit()
s1.bilt(background,(0,0))
s1.bilt(right,(240,120))
s1.bilt(body,(180,120))
s1.bily(body,(180,90))
s1.bily(food,(360,360))
if event.type == locals.QUIT:
exit()
s1.blit(beijing,(0,0))
s1.blit(right,(240,120))
s1.blit(body,(210,120))
s1.blit(body,(180,120))
s1.blit(body,(180,90))
s1.blit(apple,(360,360))
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