Commit 331bac15 by BellCodeEditor

save project

parent 181eabfc
Showing with 3 additions and 0 deletions
......@@ -91,6 +91,8 @@ while True:
for obstacle in block_list:
obstacle.rect.x -= 8
screen.blit(obstacle.image, (obstacle.rect.x,obstacle.rect.y))
if obstacle.rect.x <= 0- obstacle.rect.width:
obstacle.kill()
# 刷新画面
pygame.display.update()
FPS.tick(60)
\ No newline at end of file
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