Commit 442272a9 by BellCodeEditor

save project

parent dd6118b7
Showing with 5 additions and 3 deletions
...@@ -22,14 +22,16 @@ while True: ...@@ -22,14 +22,16 @@ while True:
if event.type == locals.QUIT: if event.type == locals.QUIT:
# 接收到退出事件后退出程序 # 接收到退出事件后退出程序
exit() exit()
pio=hero[index] if jump=="running":
pio=hero[index]
if index<4: if index<4:
index+=1 index+=1
else: else:
index=0 index=0
if event.type == locals.KEYDOWN: if event.type == locals.KEYDOWN:
if event.key == locals.K_SPACE: if jump=="running":
jump="up" if event.key == locals.K_SPACE:
jump="up"
if jump=="up": if jump=="up":
if t>0: if t>0:
y-=t y-=t
......
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