Commit fe6c3ce7 by BellCodeEditor

save project

parent 064153c2
Showing with 4 additions and 3 deletions
...@@ -28,17 +28,18 @@ while True: ...@@ -28,17 +28,18 @@ while True:
exit() exit()
if event.type==locals.KEYDOWN: if event.type==locals.KEYDOWN:
if event.key==locals.K_SPACE: if event.key==locals.K_SPACE:
zt="up" if zt=="run":
zt="up"
if zt=="up": if zt=="up":
if y>150: if y>150:
y-=5 y-=5
else: else:
zt="xia" zt="xia"
if zt=="xia": if zt=="xia":
if y<150: if y<400:
y+=5 y+=5
else: else:
zt="pao" zt="run"
wk=hero[index] wk=hero[index]
index+=1 index+=1
if index > 4: if index > 4:
......
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