Commit ad32a6b5 by BellCodeEditor

save project

parent 5b122155
Showing with 4 additions and 5 deletions
......@@ -30,23 +30,22 @@ while True:
if event.key ==locals.K_SPACE:
r = "up"
if r =="up":
index = 0
if t > 0:
y-=t
t-=2
else:
r = "down"
if r =="down":
index = 0
if t <= 30:
y+=t
t+=2
else:
r = "running"
t = 30
index+=1
if index == 4:
index = 0
if r == "running":
index+=1
if index == 4:
index = 0
Wukong=hero[index]
screen.blit(background, (0, 0))
screen.blit(road, (0, 500))
......
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