Commit 81a54d91 by BellCodeEditor

auto save

parent fb22d3f0
Showing with 4 additions and 4 deletions
...@@ -18,7 +18,7 @@ hero3 = pygame.image.load('hero3.png') ...@@ -18,7 +18,7 @@ hero3 = pygame.image.load('hero3.png')
hero4 = pygame.image.load('hero4.png') hero4 = pygame.image.load('hero4.png')
hero5 = pygame.image.load('hero5.png') hero5 = pygame.image.load('hero5.png')
hero=[hero1,hero2,hero3,hero4,hero5] hero=[hero1,hero2,hero3,hero4,hero5]
inder=0 index=0
index = 0 index = 0
...@@ -27,9 +27,9 @@ while True: ...@@ -27,9 +27,9 @@ while True:
if event.type == locals.QUIT: if event.type == locals.QUIT:
# 接收到退出事件后退出程序 # 接收到退出事件后退出程序
exit() exit()
wukong=heor[index] wukong=hero[index]
inder+=1 index+=1
if inder>=5: if index>=5:
index=0 index=0
# 将背景图画上去 # 将背景图画上去
screen.blit(background, (0, 0)) screen.blit(background, (0, 0))
......
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