Commit c188e941 by BellCodeEditor

save project

parent edc85a67
Showing with 6 additions and 6 deletions
...@@ -51,7 +51,11 @@ while True: ...@@ -51,7 +51,11 @@ while True:
if event.type == locals.KEYDOWN: if event.type == locals.KEYDOWN:
if jumpState == "runing": if jumpState == "runing":
if event.key == locals.K_SPACE: if event.key == locals.K_SPACE:
jumpState = "up" wukong = hero[index]
if jumpState == "runing": # 跑步状态下
index += 1
if index >= 5:
index = 0 jumpState = "up"
if gamestate == True: if gamestate == True:
if jumpState == "up": # 起跳状态 if jumpState == "up": # 起跳状态
...@@ -69,11 +73,7 @@ while True: ...@@ -69,11 +73,7 @@ while True:
t =30 t =30
# 悟空造型 # 悟空造型
wukong = hero[index]
if jumpState == "runing": # 跑步状态下
index += 1
if index >= 5:
index = 0
# 将背景图画上去 # 将背景图画上去
shan_x -=2 shan_x -=2
if shan_x <-1000: if shan_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