Commit bed8cd8e by BellCodeEditor

save project

parent 9d17e7de
Showing with 3 additions and 1 deletions
...@@ -82,10 +82,12 @@ while True: ...@@ -82,10 +82,12 @@ while True:
time += 1 time += 1
if time >=60: if time >=60:
r=random.randint(0,100) r=random.randint(0,100)
if num >20:
obstacle
if r >40: if r >40:
obstacle = Block(bush,cacti) obstacle = Block(bush,cacti)
block_list.add(obstacle) block_list.add(obstacle)
time = 0
for prop in block_list: for prop in block_list:
prop.rect.x -= 8 prop.rect.x -= 8
screen.blit(prop.image) screen.blit(prop.image)
......
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