Commit c048393c by BellCodeEditor

save project

parent 54b0543a
Showing with 2 additions and 2 deletions
...@@ -94,9 +94,9 @@ while True: ...@@ -94,9 +94,9 @@ while True:
time += 1 time += 1
if time >= 60: if time >= 60:
time = 0 time = 0
num = randint(0,50) num = random.randint(0,50)
if num >20: if num >20:
obstacle = Block(bush,cacyi,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
......
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