Commit fa3c0b47 by BellCodeEditor

save project

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