Commit b7e5a690 by BellCodeEditor

save project

parent 20ba82a8
Showing with 4 additions and 4 deletions
......@@ -77,14 +77,14 @@ while True:
if t > 0:
y -= t
wukong.rect.y = y
t -= 2
t -= 1.5
else:
jumpState = "down"
if jumpState == "down": # 降落状态
if t <= 30:
y += t
wukong.rect.y = y
t += 2
t += 1.5
else:
jumpState = "runing"
t =30
......@@ -131,4 +131,4 @@ while True:
# 刷新画面
pygame.display.update()
FPS.tick(40)
\ No newline at end of file
FPS.tick(20)
\ 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