Commit cc2f0785 by BellCodeEditor

auto save

parent 55ffaebb
Showing with 2 additions and 4 deletions
......@@ -18,17 +18,15 @@ pygame.image.load('hero3.png'),
pygame.image.load('hero4.png'),
pygame.image.load('hero5.png'),]
index = 0
wukong=hero[0]
a=0
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
# 接收到退出事件后退出程序
exit()
a=a+1
index=
if a>4:
a=0
wukong=hero[a]
# 将背景图画上去
screen.blit(background, (0, 0))
screen.blit(road, (0, 500))
......
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