Commit 8702051b by BellCodeEditor

save project

parent c0423b9b
Showing with 4 additions and 5 deletions
...@@ -35,23 +35,22 @@ while True: ...@@ -35,23 +35,22 @@ while True:
if y >= 150: if y >= 150:
y -= u y -= u
u -= 0.2 u -= 0.2
index -= 1
else: else:
douzou = "down" douzou = "down"
if douzou == "down": if douzou == "down":
if y <= 400: if y <= 400:
y += u y += u
u += 0.2 u += 0.2
index -= 1
else: else:
douzou = "runing" douzou = "runing"
yee = hero[index] yee = hero[index]
index += 1 if douzou == "runing":
if index == 5: index += 1
index = 0 if index == 5:
index = 0
# 将背景图画上去 # 将背景图画上去
screen.blit(background, (0, 0)) screen.blit(background, (0, 0))
......
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