Commit eac9fff3 by BellCodeEditor

save project

parent 0f7a9e1a
Showing with 6 additions and 3 deletions
......@@ -14,18 +14,20 @@ apple = pygame.image.load('apple.png')
body = pygame.image.load('body.png')
# 初始化pygame,为使用pygame做准备
pygame.init()
x,y=480,60
# 创建一个窗口
screen = pygame.display.set_mode((660,480))
FPS=pygame.time.Clock()
while True :
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
x+=30
screen.blit(bg,(0,0))
screen.blit(right,(480,60))
screen.blit(right,(x,y))
screen.blit(body,(450,60))
screen.blit(body,(420,60))
screen.blit(body,(420,30))
screen.blit(apple,(480,90))
pygame.display.update()
FPS.tick(3)
\ 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