Commit 8fdcacd5 by BellCodeEditor

save project

parent ee91982f
Showing with 5 additions and 3 deletions
...@@ -26,15 +26,17 @@ while True: ...@@ -26,15 +26,17 @@ while True:
jumpstate= "up" jumpstate= "up"
if jumpstate == "up": if jumpstate == "up":
if y>150: if y>150:
y-=5 y-=t
t-=2
else: else:
jumpstate="down" jumpstate="down"
if jumpstate == "down": if jumpstate == "down":
if y<400: if y<400:
y+=5 y+=t
t+=2
else: else:
if jumpstate == "running": if jumpstate == "running":
t=30
# 将背景图画上去 # 将背景图画上去
screen.blit(background, (0, 0)) screen.blit(background, (0, 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