Commit 092f10db by BellCodeEditor

auto save

parent f1049590
Showing with 2 additions and 2 deletions
...@@ -23,11 +23,11 @@ while True: ...@@ -23,11 +23,11 @@ while True:
exit() exit()
if event.type == locals.KEYDOWN: if event.type == locals.KEYDOWN:
if event.key == locals.K_SPACE: if event.key == locals.K_SPACE:
if y > 150:
jump_state = "up" jump_state = "up"
if jump_state == "up":
if y > 150:
y -= 5 y -= 5
elif y < 400: elif y < 400:
jump_state = "down"
y += 5 y += 5
else: else:
jump_state = "run" jump_state = "run"
......
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