Commit 44a52e83 by BellCodeEditor

save project

parent 22ff3a93
Showing with 2 additions and 0 deletions
...@@ -39,6 +39,7 @@ while True: ...@@ -39,6 +39,7 @@ while True:
if event.type == locals.KEYDOWN: if event.type == locals.KEYDOWN:
# print('KEYDOWN') # print('KEYDOWN')
if event.key == locals.K_SPACE: if event.key == locals.K_SPACE:
if jumpState == 'run':
jumpState = 'up' jumpState = 'up'
# print('K_SPACE') # print('K_SPACE')
...@@ -58,6 +59,7 @@ while True: ...@@ -58,6 +59,7 @@ while True:
t = 30 t = 30
wukong = hero[index] wukong = hero[index]
if jumpState == 'run':
count += 1 count += 1
index = int(count/6) index = int(count/6)
# print(index) # print(index)
......
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