Commit d01ab200 by BellCodeEditor

save project

parent e2d315ad
Showing with 5 additions and 6 deletions
...@@ -35,11 +35,10 @@ if jumpState == "up": ...@@ -35,11 +35,10 @@ if jumpState == "up":
y -= 5 y -= 5
else: else:
jumpState = "down" jumpState = "down"
if jumpState == "down": if jumpState == "down":
if y < 400 if y > 400:
y += 5 y += 5
else else:
jumpState = "runing" jumpState = "runing"
...@@ -55,4 +54,4 @@ if jumpState == "down": ...@@ -55,4 +54,4 @@ if jumpState == "down":
screen.blit(wukong, (150, 400)) screen.blit(wukong, (150, 400))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
FPS.stick(10) FPS.stick(60)
\ No newline at end of file \ No newline at end of file
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