Commit 7e974568 by BellCodeEditor

save project

parent 911bad66
Showing with 3 additions and 2 deletions
...@@ -29,17 +29,18 @@ while True: ...@@ -29,17 +29,18 @@ while True:
if event.key == locals.K_SPACE: if event.key == locals.K_SPACE:
c="up" c="up"
if c=="up": if c=="up":
if t < 30: if t > 0:
y-=t y-=t
t-=2 t-=2
else: else:
c="down" c="down"
if c=="down": if c=="down":
if t > 400: if t <= 30:
y+=t y+=t
t+=2 t+=2
else: else:
c="runing" c="runing"
t=30
b=hero[a] b=hero[a]
a+=1 a+=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