Commit bd3c7fac by BellCodeEditor

auto save

parent 047373ff
Showing with 3 additions and 0 deletions
......@@ -18,6 +18,7 @@ hero = [pygame.image.load('hero1.png'),
pygame.image.load('hero4.png'),
pygame.image.load('hero5.png'),]
index = 0
t=30
y=400
jumpstate='runing'
......@@ -32,6 +33,7 @@ while True:
if jumpstate=='up':
if y>150:
y-=5
t
else:
jumpstate='down'
if jumpstate=='down':
......@@ -40,6 +42,7 @@ while True:
else:
jumpstate='runing'
wukong=hero[index]
index+=1
if index > len(hero)-1:
......
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