Commit ad32a6b5 by BellCodeEditor

save project

parent 5b122155
Showing with 1 additions and 2 deletions
...@@ -30,20 +30,19 @@ while True: ...@@ -30,20 +30,19 @@ while True:
if event.key ==locals.K_SPACE: if event.key ==locals.K_SPACE:
r = "up" r = "up"
if r =="up": if r =="up":
index = 0
if t > 0: if t > 0:
y-=t y-=t
t-=2 t-=2
else: else:
r = "down" r = "down"
if r =="down": if r =="down":
index = 0
if t <= 30: if t <= 30:
y+=t y+=t
t+=2 t+=2
else: else:
r = "running" r = "running"
t = 30 t = 30
if r == "running":
index+=1 index+=1
if index == 4: if index == 4:
index = 0 index = 0
......
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