Commit 8eeb2690 by BellCodeEditor

save project

parent ec532a5e
Showing with 3 additions and 3 deletions
......@@ -45,7 +45,7 @@ coin = pygame.mixer.Sound('score.wav')
index = 0
y = 400
jumpState = "runing"
t = 30
t = 35
road_x = 0
bg_x = 0
time = 0
......@@ -81,13 +81,13 @@ while True:
else:
jumpState = "down"
if jumpState == "down": # 降落状态
if t <= 30:
if t <= 35:
y += t
wukong.rect.y = y
t += 2
else:
jumpState = "runing"
t =30
t =35
# 将背景图画上去
bg_x -= 1
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