Commit cb0066c8 by BellCodeEditor

save project

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