Commit 4e0b6a24 by BellCodeEditor

save project

parent c1dee687
Showing with 2 additions and 1 deletions
......@@ -17,7 +17,7 @@ hero = [pygame.image.load('hero1.png'),
pygame.image.load('hero3.png'),
pygame.image.load('hero4.png'),
pygame.image.load('hero5.png')]
index = 0
index = 0
while True:
for event in pygame.event.get():
......@@ -25,6 +25,7 @@ while True:
# 接收到退出事件后退出程序
exit()
wukong = hero[index]
index += 1
if index > 4:
index = 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