Commit cb0066c8 by BellCodeEditor

save project

parent cc76abba
Showing with 4 additions and 12 deletions
...@@ -39,23 +39,15 @@ while True: ...@@ -39,23 +39,15 @@ while True:
if event.type == locals.KEYDOWN: if event.type == locals.KEYDOWN:
if state=="moving" and event.key==locals.K_UP: if state=="moving" and event.key==locals.K_UP:
state = "up" state = "up"
if state!="moving" and event.key==locals.K_DOWN: if state=="down" and event.key==locals.K_DOWN:
state = "speed" pass
if state=="up": if state=="up":
if t>0: if t>0:
y-=t y-=t
t-=1.5 t-=2
else: else:
state="down" state="down"
if state=="down": if state=="down":
if t<=30:
y+=t
t+=1.5
else:
state="moving"
t-=1.5
if state == "speed":
if t<=30: if t<=30:
y+=t y+=t
t+=2 t+=2
......
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