Commit 1f06d174 by BellCodeEditor

save project

parent 17b2ac31
Showing with 3 additions and 2 deletions
......@@ -54,22 +54,23 @@ while True:
if event.key == locals.K_SPACE:
jumpState = "up"
if gamestate == True:
wukong = Player(hero[index])
if jumpState == "up": # 起跳状态
if t > 0:
y -= t
wukong.rect.y = y
t -= 2
else:
jumpState = "down"
if jumpState == "down": # 降落状态
if t <= 30:
y += t
wukong.rect.y = y
t += 2
else:
jumpState = "runing"
t =30
# 悟空造型
wukong = Player(hero[index])
if jumpState == "runing": # 跑步状态下
index += 1
if index >= 5:
......
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