Commit fa3c0b47 by BellCodeEditor

save project

parent 3a368463
Showing with 4 additions and 4 deletions
......@@ -31,13 +31,13 @@ while True:
if jumpSpace=='up':
if y>150:
y-=5
y-=4.8
else:
jumpSpace='down'
if jumpSpace=='down':
if y<400:
y+=5
y+=5.2
else:
jumpSpace='running'
......@@ -52,4 +52,4 @@ while True:
screen.blit(wukong, (150, y))
# 刷新画面
pygame.display.update()
FPS.tick(60)
\ No newline at end of file
FPS.tick(50)
\ 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