Commit cfded3b3 by BellCodeEditor

save project

parent 714283bf
Showing with 3 additions and 2 deletions
...@@ -30,17 +30,18 @@ while True: ...@@ -30,17 +30,18 @@ while True:
if event.key==locals.K_SPACE: if event.key==locals.K_SPACE:
jumpstate="up" jumpstate="up"
if jumpstate=="up": if jumpstate=="up":
if t>0: if t>=0:
y-=t y-=t
t-=2 t-=2
else: else:
jumpstate="down" jumpstate="down"
if jumpstate=="down": if jumpstate=="down":
if t<30 : if t<=30:
y+=t y+=t
t+=2 t+=2
else: else:
jumpstate="runing" jumpstate="runing"
t=30
bl=hero[index] bl=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