Commit 0d418518 by BellCodeEditor

save project

parent f4803d96
Showing with 2 additions and 3 deletions
...@@ -73,7 +73,6 @@ while True: ...@@ -73,7 +73,6 @@ while True:
index += 1 index += 1
if index >= 5: if index >= 5:
index = 0 index = 0
if gamestate == True: if gamestate == True:
if jumpState == "up": # 起跳状态 if jumpState == "up": # 起跳状态
if t > 0: if t > 0:
...@@ -81,7 +80,7 @@ while True: ...@@ -81,7 +80,7 @@ while True:
wukong.rect.y = y wukong.rect.y = y
t -= 1.65 t -= 1.65
else: else:
jumpState = "down" jumpState = "down"
if jumpState == "down": # 降落状态 if jumpState == "down": # 降落状态
if t <= 30: if t <= 30:
y += t y += t
...@@ -90,7 +89,7 @@ while True: ...@@ -90,7 +89,7 @@ while True:
else: else:
jumpState = "runing" jumpState = "runing"
t =30 t =30
y=400
# 将背景图画上去 # 将背景图画上去
bg_x -= speedbg bg_x -= speedbg
if bg_x<=-1000: if bg_x<=-1000:
......
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