Commit f24e01a4 by BellCodeEditor

save project

parent d6aa1eaf
Showing with 3 additions and 3 deletions
...@@ -37,7 +37,7 @@ shan_x=0 ...@@ -37,7 +37,7 @@ shan_x=0
index = 0 index = 0
y = 400 y = 400
jumpState = "runing" jumpState = "runing"
t = 30 t = 40
road_x=0 road_x=0
_list=pygame.sprite.Group() _list=pygame.sprite.Group()
time=0 time=0
...@@ -65,13 +65,13 @@ while True: ...@@ -65,13 +65,13 @@ while True:
else: else:
jumpState = "down" jumpState = "down"
if jumpState == "down": # 降落状态 if jumpState == "down": # 降落状态
if t <= 30: if t <= 40:
y += t y += t
wukong.rect.y=y wukong.rect.y=y
t += 2 t += 2
else: else:
jumpState = "runing" jumpState = "runing"
t =30 t =40
# 悟空造型 # 悟空造型
......
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