Commit d7a6fe0d by BellCodeEditor

save project

parent fabf32c7
Showing with 22 additions and 3 deletions
......@@ -2,7 +2,27 @@ import pygame
# 初始化pygame,为使用pygame做准备
pygame.init()
bg=pygame.image.load("bg.png")
body=pygame.image.load("body.png")
body=pygame.image.load("body.png")
body=pygame.image.load("body.png")
right=pygame.image.load("right.png")
down=pygame.image.load("down.png")
apple=pygame.image.load("apple.png")
# 创建一个窗口
screem=pygame.display.set_mode((660,480)
done()
\ No newline at end of file
screem=pygame.display.set_mode((660,480))
while True:
for i in pygame.event.get():
if i.type==pygame.QUIT:
exit()
screem.blit(bg,(0,0))
screem.blit(right,(210,120))
screem.blit(body,(180,120))
screem.blit(body,(180,150))
screem.blit(body,(180,180))
# screem.blit(down,(180,90))
screem.blit(apple,(220,200))
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