MovingBlocks / DestinationSol

Official continuation of Destination Sol, the great fun little arcade space shooter from http://sourceforge.net/projects/destinationsol/ Modules live at https://github.com/DestinationSol/
Apache License 2.0
330 stars 122 forks source link

Asteroids break into smaller pieces and then into tiny rocks. Small pieces drop loot. #654

Open Mystic-Slice opened 2 years ago

Mystic-Slice commented 2 years ago

Description

Rubble created from destroying asteroid also now create smaller pieces when destroyed. CreatesRubbleOnDestruction component is not added for tiny rocks. DropsMoneyOnDestruction component added to rubble also except the tiny rocks.

Testing

  • Break the golden asteroid.
  • Observe that it does not collapse into tiny pieces of rocks straight away. Instead, it acts like normal asteroids in the game.
  • The smaller pieces when broken also drop loot.

P.S: The newly created pieces of asteroid do not break(fixed in #653). To test, add the health component to the rubble entities.

Pre Pull Request Checklist:

Mystic-Slice commented 2 years ago

@BenjaminAmos Thnkx for the review. I have made the corrections.

Mystic-Slice commented 2 years ago

Rebased to develop