Commit 44a52e83 by BellCodeEditor

save project

parent 22ff3a93
Showing with 5 additions and 3 deletions
...@@ -39,7 +39,8 @@ while True: ...@@ -39,7 +39,8 @@ 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:
jumpState = 'up' if jumpState == 'run':
jumpState = 'up'
# print('K_SPACE') # print('K_SPACE')
if jumpState == 'up': if jumpState == 'up':
...@@ -57,8 +58,9 @@ while True: ...@@ -57,8 +58,9 @@ while True:
jumpState = 'run' jumpState = 'run'
t = 30 t = 30
wukong = hero[index] wukong = hero[index]
count += 1 if jumpState == 'run':
count += 1
index = int(count/6) index = int(count/6)
# print(index) # print(index)
if index == 5: if index == 5:
......
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