Commit d190e355 by BellCodeEditor

save project

parent 2705688f
Showing with 2 additions and 4 deletions
...@@ -26,10 +26,7 @@ while True: ...@@ -26,10 +26,7 @@ while True:
screen.blit(background, (0, 0)) screen.blit(background, (0, 0))
screen.blit(road, (0, 500)) screen.blit(road, (0, 500))
screen.blit(hero[index], (150, 400)) screen.blit(hero[index], (150, 400))
if index<len(hero)-1: index=(index+1) % len(hero)
index+=1
else:
index=0
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
FPS.tick(60) FPS.tick(60)
\ 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