Commit c36adb3f by BellCodeEditor

save project

parent 5827b8b0
Showing with 7 additions and 0 deletions
...@@ -6,6 +6,10 @@ pygame.init() ...@@ -6,6 +6,10 @@ pygame.init()
background = pygame.image.load('bg.png') background = pygame.image.load('bg.png')
right = pygame.image.load('right.png') right = pygame.image.load('right.png')
food = pygame.image.load('apple.png') food = pygame.image.load('apple.png')
body1 = pygame.image.load('body.png')
body2 = pygame.image.load('body.png')
body3 = pygame.image.load('body.png')
# 创建一个窗口 # 创建一个窗口
screen = pygame.display.set_mode((800,600)) screen = pygame.display.set_mode((800,600))
while True: while True:
...@@ -15,6 +19,9 @@ while True: ...@@ -15,6 +19,9 @@ while True:
screen.blit(background,(0,0)) screen.blit(background,(0,0))
screen.blit(right,(240,120)) screen.blit(right,(240,120))
screen.blit(food,(360,300)) screen.blit(food,(360,300))
screen.blit(body1,(210,120))
screen.blit(body2,(210,90))
screen.blit(body3,(210,60))
pygame.display.update() 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