Commit 83dca782 by BellCodeEditor

save project

parent 749725d2
Showing with 4 additions and 3 deletions
...@@ -31,20 +31,21 @@ while True: ...@@ -31,20 +31,21 @@ while True:
if event.key == locals.K_SPACE: if event.key == locals.K_SPACE:
jumpsteat = "up" jumpsteat = "up"
if jumpsteat == "up": if jumpsteat == "up":
if y > 0: if t > 0:
y -= t y -= t
t -= 2 t -= 2
else: else:
jumpsteat = "down" jumpsteat = "down"
if jumpsteat == "down": if jumpsteat == "down":
if y <= 30: if t <= 30:
y += t y += t
t+=2 t+=2
else: else:
jumpsteat = "running" jumpsteat = "running"
t=30 t=30
wukong = hero[k] wukong = hero[k]
k += 1 if jumpsteat == "running":
k += 1
if k>4: if k>4:
k = 0 k = 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