Commit f4fe7552 by BellCodeEditor

save project

parent 03153581
Showing with 3 additions and 3 deletions
...@@ -52,7 +52,7 @@ while True: ...@@ -52,7 +52,7 @@ while True:
jumpState = "runing" jumpState = "runing"
t =30 t =30
road_x-=8 road_x-=8
back_x-=3 back_x-=1
if road_x<=-1000: if road_x<=-1000:
road_x=0 road_x=0
if back_x<=-1000: if back_x<=-1000:
...@@ -78,4 +78,4 @@ while True: ...@@ -78,4 +78,4 @@ while True:
screen.blit(obstacle, (rect.x, rect.y)) screen.blit(obstacle, (rect.x, rect.y))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
FPS.tick(60) FPS.tick(30)
\ 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