Commit 790736e5 by BellCodeEditor

save project

parent 8445aae3
Showing with 8 additions and 0 deletions
......@@ -88,6 +88,14 @@ while True:
for sprite in bb:
sprite.rect.x -= 8
screen.blit(sprite.image,(sprite.rect.x,sprite.rect.y))
if sprite.rect.x<=0-sprite.rect.width:
sprite.kill()
# 障碍物消失
screen.blit(aa.image, (aa.rect.x, aa.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