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'), ...@@ -18,6 +18,7 @@ hero = [pygame.image.load('hero1.png'),
pygame.image.load('hero4.png'), pygame.image.load('hero4.png'),
pygame.image.load('hero5.png'),] pygame.image.load('hero5.png'),]
index = 0 index = 0
t=30
y=400 y=400
jumpstate='runing' jumpstate='runing'
...@@ -32,6 +33,7 @@ while True: ...@@ -32,6 +33,7 @@ while True:
if jumpstate=='up': if jumpstate=='up':
if y>150: if y>150:
y-=5 y-=5
t
else: else:
jumpstate='down' jumpstate='down'
if jumpstate=='down': if jumpstate=='down':
...@@ -39,6 +41,7 @@ while True: ...@@ -39,6 +41,7 @@ while True:
y+=5 y+=5
else: else:
jumpstate='runing' jumpstate='runing'
wukong=hero[index] wukong=hero[index]
index+=1 index+=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