Commit bdae03d3 by BellCodeEditor

save project

parent 2a60661d
Showing with 2 additions and 0 deletions
...@@ -27,6 +27,7 @@ while True: ...@@ -27,6 +27,7 @@ while True:
# 接收到退出事件后退出程序 # 接收到退出事件后退出程序
exit() exit()
if event.type ==locals.KEYDOWN: if event.type ==locals.KEYDOWN:
if jumpSpace=='running':
if event.key==locals.K_SPACE: if event.key==locals.K_SPACE:
jumpSpace='up' jumpSpace='up'
...@@ -45,6 +46,7 @@ while True: ...@@ -45,6 +46,7 @@ while True:
jumpSpace='running' jumpSpace='running'
t=30 t=30
wukong=hero[index] wukong=hero[index]
if jumpSpace=='running':
index+=1 index+=1
if index>4: if index>4:
index=0 index=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