Commit 8c73b5e6 by BellCodeEditor

auto save

parent 714f26de
Showing with 3 additions and 3 deletions
......@@ -47,7 +47,7 @@ hero = [pygame.image.load('hero1.png'),
index = 0
y = 400
jumpState = "runing"
t = 35
t = 40
road_x = 0
bg_x = 0
time = 0
......@@ -89,13 +89,13 @@ while True:
else:
jumpState = "down"
if jumpState == "down": # 降落状态
if t <= 35:
if t <= 40:
y += t
wukong.rect.y = y
t += 2
else:
jumpState = "runing"
t =35
t = 40
# 将背景图画上去
bg_x -= 1
......
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