Commit 20166aad by BellCodeEditor

save project

parent 4b7aac55
Showing with 1 additions and 1 deletions
...@@ -82,7 +82,7 @@ while True: ...@@ -82,7 +82,7 @@ while True:
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(obstacle.image,(obstacle.rect.x , obstacle.rect.y)) screen.blit(sprite.image, (sprite.rect.x,sprite.rect.y))
if sprite.rect.x <= 0-sprite.rect.width: if sprite.rect.x <= 0-sprite.rect.width:
sprite.kill() 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