Commit 05066d78 by BellCodeEditor

save project

parent 6df474be
Showing with 5 additions and 2 deletions
......@@ -5,7 +5,8 @@ pygame.init()
# 创建一个窗口
screen=pygame.display.set_mode((660,480))
x,y=240,120
FPS=pygame.time.Clock()
background=pygame.image.load('bg.png')
apple=pygame.image.load('apple.png')
right=pygame.image.load('right.png')
......@@ -17,9 +18,11 @@ while True:
exit()
screen.blit(background,(0,0))
screen.blit(right,(240,120))
screen.blit(right,(x,y))
screen.blit(apple,(360,300))
screen.blit(body,(240,90))
screen.blit(body,(210,90))
screen.blit(body,(210,60))
x+=30
FPS.tick(3)
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