Commit 087e51d5 by BellCodeEditor

save project

parent d14f3201
Showing with 12 additions and 8 deletions
......@@ -16,19 +16,22 @@ while True:
clock.tick(3)
# 创建一个窗口
# 创建一个窗口
h=pygame.display.set_mode((660,480))
bg=pygame.image.load('bg.png')
right=pygame.image.load('right.png')
apple=pygame.image.load('apple.png')
body=pygame.image.load('body.png')
h=[(210,120),(180,120),(180,90),(x,y)]
h.blit(bg,(0,0))
h.blit(right,(x,y))
h.blit(body,(210,120))
h.blit(body,(180,120))
h.blit(body,(180,90))
h.blit(apple,(300,300))
h.append(len(h)-1)
h.pop(-1)
for i in h():
h.blit(right,0)
h.blit(body,1)
h.blit(body,2)
h.blit(body,3)
h.blit(apple,(300,300))
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