Commit 442272a9 by BellCodeEditor

save project

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