Commit 76129c57 by BellCodeEditor

auto save

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