Commit dd11b550 by BellCodeEditor

save project

parent 23b36f6d
Showing with 3 additions and 3 deletions
...@@ -72,11 +72,11 @@ while True: ...@@ -72,11 +72,11 @@ while True:
if index >= 5: if index >= 5:
index = 0 index = 0
# 将背景图画上去 # 将背景图画上去
bg_x -= 1 bg_x -= 8
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 -= 25
if road_x<=-1000: if road_x<=-1000:
road_x = 0 road_x = 0
screen.blit(road, (road_x, 500)) screen.blit(road, (road_x, 500))
...@@ -85,7 +85,7 @@ while True: ...@@ -85,7 +85,7 @@ while True:
# ++++++++++++++++++++++ # ++++++++++++++++++++++
if obstacle.rect.x <= 0-obstacle.rect.width: if obstacle.rect.x <= 0-obstacle.rect.width:
obstacle = Block(bush,cacti,stone) obstacle = Block(bush,cacti,stone)
obstacle.rect.x -= 8 obstacle.rect.x -= 25
# ++++++++++++++++++++++ # ++++++++++++++++++++++
screen.blit(obstacle.image, (obstacle.rect.x, obstacle.rect.y)) screen.blit(obstacle.image, (obstacle.rect.x, obstacle.rect.y))
# 刷新画面 # 刷新画面
......
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