Commit 13f32038 by BellCodeEditor

save project

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