Commit 37077bb5 by BellCodeEditor

auto save

parent bd8a9801
Showing with 7 additions and 3 deletions
back.jpeg

25.5 KB

...@@ -5,8 +5,8 @@ import sys ...@@ -5,8 +5,8 @@ import sys
pygame.init() pygame.init()
# 创建一个窗口 # 创建一个窗口
screen = pygame.display.set_mode((800,600)) screen = pygame.display.set_mode((650,364))
background = pygame.image.load("bg.png") background = pygame.image.load("back.jpeg")
apple = pygame.image.load("apple.png") apple = pygame.image.load("apple.png")
body = pygame.image.load("body.png") body = pygame.image.load("body.png")
right= pygame.image.load("right.png") right= pygame.image.load("right.png")
...@@ -17,6 +17,9 @@ while True: ...@@ -17,6 +17,9 @@ while True:
screen.blit(background,(0,0)) screen.blit(background,(0,0))
screen.blit(apple,(120,150)) screen.blit(apple,(120,150))
screen.blit(body,(110,100)) screen.blit(body,(90,60))
screen.blit(body,(60,60))
screen.blit(body,(30,60))
screen.blit(body,(0,60))
screen.blit(right,(120,60)) screen.blit(right,(120,60))
pygame.display.update() 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