Commit d59928f2 by BellCodeEditor

save project

parent 80c9edd7
Showing with 2 additions and 2 deletions
......@@ -75,7 +75,7 @@ while True:
t =30
if road_x<=-1000:
road_x=0
road_x-=8
road_x-=200
if bg_x<=-1000:
bg_x=0
bg_x-=2
......@@ -94,7 +94,7 @@ while True:
obstacle=Block(stone,cacti,bush)
block_list.add(obstacle)
for sprite in block_list:
sprite.rect.x-=8
sprite.rect.x-=200
screen.blit(sprite.image,(sprite.rect.x,sprite.rect.y))
if sprite.rect.x<0-sprite.rect.width:
sprite.kill()
......
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