Commit e6ae5f2f by BellCodeEditor

auto save

parent 95c4e3d2
Showing with 5 additions and 6 deletions
......@@ -25,8 +25,9 @@ while True:
# 接收到退出事件后退出程序
exit()
wukong = hero[index]
index=index+1
if index>4:
index=0
# 将背景图画上去
screen.blit(background, (0, 0))
screen.blit(road, (0, 500))
......@@ -34,6 +35,4 @@ while True:
# 刷新画面
pygame.display.update()
FPS.tick(60)
index=index+1
if index>4:
index=0
\ No newline at end of file
\ 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