Commit be2dae15 by BellCodeEditor

save project

parent 9c232a1b
Showing with 6 additions and 6 deletions
...@@ -83,12 +83,12 @@ while True: ...@@ -83,12 +83,12 @@ while True:
time += 1 time += 1
if time>=60: if time>=60:
time=0 time=0
num=random.randint(0,50) num=random.randint(0,50)
if num > 20: if num > 20:
obstacle = Block(bush,cacti,stone) obstacle = Block(bush,cacti,stone)
block_list.add(obstacle) block_list.add(obstacle)
for sprite in block_list : for sprite in block_list :
sprite.rect.x -=8 sprite.rect.x -=8
screen.blit(sprite.image, (sprite.rect.x, sprite.rect.y) screen.blit(sprite.image, (sprite.rect.x, sprite.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