Commit fb411913 by BellCodeEditor

save project

parent 96820a8d
Showing with 3 additions and 3 deletions
...@@ -34,14 +34,14 @@ while True: ...@@ -34,14 +34,14 @@ while True:
jumpState='up' jumpState='up'
if jumpState=='up': if jumpState=='up':
if t > 0: if t > 0:
y -= t y -= t
t -= 2 t -= 2
screen.blit(wukong, (150,y)) screen.blit(wukong, (150,y))
else: else:
jumpState='down' jumpState='down'
if jumpState=='down': if jumpState=='down':
if t<=30: if t<=30:
y += t y += t
t += 2 t += 2
screen.blit(wukong, (150,y)) screen.blit(wukong, (150,y))
else: else:
......
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