Commit e37dfbc8 by BellCodeEditor

save project

parent 4e243c6c
Showing with 9 additions and 3 deletions
......@@ -13,6 +13,8 @@ body=pygame.image.load('body.png')
screen=pygame.display.set_mode((660,480))
FPSCLOCK=pygame.time.Clock()
x,y=240,120
position=[(180,90),(180,120),(240,120),(x,y)]
while True:
for event in pygame.event.get():
......@@ -20,12 +22,16 @@ while True:
#接收到退出事件后退出程序
exit()
x += 30
position.append((x,y))
position.pop(0)
screen.blit(background,(0,0))
screen.blit(right,(x,y))
screen.blit(body,(210,120))
screen.blit(body,(180,120))
screen.blit(body,(180,90))
for i in range(len(position)-1):
screen.blit(body,position[i])
#screen.blit(body,(210,120))
#screen.blit(body,(180,120))
#screen.blit(body,(180,90))
screen.blit(apple,(360,360))
......
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