Commit 78238236 by BellCodeEditor

save project

parent 68d47e87
Showing with 16 additions and 0 deletions
......@@ -4,7 +4,22 @@ pygame.init()
# 创建一个窗
screen = pygame.display.set_mode((660,480))
#载入素材
bg = pygame.image.load("bg.png")
rt = pygame.image.load("right.png")
food = pygame.image.load("apple.png")
body = pygame.image.load("body.png")
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
exit()
screen.blit(bg,(0,0))
screen.blit(rt,(100,120))
screen.blit(food,(30,60))
screen.blit(body,(240,150))
pygame.display.update()
\ No newline at end of file
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