Commit a4233059 by BellCodeEditor

save project

parent 91e3e509
Showing with 2 additions and 1 deletions
......@@ -86,11 +86,12 @@ while True:
time+=1
if time >=60:
num=random.randint(0,50)
if num >=20:
if num >20:
aa=Block(bush,cacti,stone)
block_list.add(aa)
time=0
for sprite in block_list:
sprite.rect.x -= 8
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