Commit d01ab200 by BellCodeEditor

save project

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