Commit d5224279 by BellCodeEditor

save project

parent 1f1e39af
Showing with 2 additions and 2 deletions
...@@ -33,13 +33,13 @@ while True: ...@@ -33,13 +33,13 @@ while True:
if event.key == locals.K_SPACE: if event.key == locals.K_SPACE:
S = "up" S = "up"
if S == "up": #判断起跳距离 if S == "up": #判断起跳距离
if t > 0: if t > 0: #将上升时速度逐渐变慢
y -= t y -= t
t -= 2 t -= 2
else: else:
S = "down" S = "down"
if S == "down": #判断下降距离 if S == "down": #判断下降距离
if t <= 30: if t <= 30: #将下降时速度逐渐变快
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