Commit d779703d by BellCodeEditor

save project

parent 1eb7e510
Showing with 4 additions and 2 deletions
...@@ -32,13 +32,15 @@ while True: ...@@ -32,13 +32,15 @@ while True:
if event.key==locals.K_SPACE and JumpState=="runing": if event.key==locals.K_SPACE and JumpState=="runing":
JumpState="up" JumpState="up"
if JumpState=="up": if JumpState=="up":
if y>150: if t>0:
index=0
y-=t y-=t
t-=2 t-=2
else: else:
JumpState="down" JumpState="down"
if JumpState=="down": if JumpState=="down":
if y<400: if t<=30:
index=0
y+=t y+=t
t+=2 t+=2
else: else:
......
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