Commit 1edc394b by BellCodeEditor

auto save

parent 5d61c412
Showing with 3 additions and 3 deletions
...@@ -61,7 +61,7 @@ while True: ...@@ -61,7 +61,7 @@ while True:
index = 0 index = 0
# 将背景图画上去 # 将背景图画上去
bg_x-=1 bg_x-=1
if bg_x<=-1000 if bg_x<=-1000:
bg_x=0 bg_x=0
screen.blit(background, (bg_x, 0)) # 远处背景 screen.blit(background, (bg_x, 0)) # 远处背景
road_x-=8 road_x-=8
...@@ -81,4 +81,4 @@ while True: ...@@ -81,4 +81,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(55)
\ 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