Commit 5192f97d by BellCodeEditor

auto save

parent 399a2093
Showing with 6 additions and 1 deletions
......@@ -5,6 +5,7 @@ pygame.init()
b=pygame.image.load('bg.png')
r=pygame.image.load('right.png')
f=pygame.image.load('apple.png')
y=pygame.image.load('body.png')
# 创建一个窗口
screen=pygame.display.set_mode((660,480))
while True:
......@@ -13,5 +14,8 @@ while True:
exit()
screen.blit(b,(0,0))
screen.blit(r,(240,120))
screen.blit(f,(360,300))
screen.blit(f,(360,300))
screen.blit(y,(210,120))
screen.blit(y,(180,120))
screen.blit(y,(180,90))
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