Commit 38b9858e by BellCodeEditor

save project

parent a3d37ce6
Showing with 10 additions and 5 deletions
......@@ -18,16 +18,20 @@ x,y=480,60
# 创建一个窗口
screen = pygame.display.set_mode((660,480))
FPS=pygame.time.Clock()
hp=[(420,30),(420,60),(450,60),(x,y)]
while True :
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
x+=30
x+=30
hp.append((x,y))
hp.pop(0)
screen.blit(bg,(0,0))
screen.blit(right,(x,y))
screen.blit(body,(450,60))
screen.blit(body,(420,60))
screen.blit(body,(420,30))
screen.blit(right,hp[-1])
for i in range(len(hp)-1):
screen.blit(body,hp[i])
# 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