dretruction 2d spaceship
Structure of breaking
These last days I worked on spaceship structure. As I want it to be break nicely, I built some kind of structure from ships described in text files. The result is not perfect yet, but it works, ships can be broken firing at them ^^
Here's an image of a ship structure, built automatically starting from cockpit and kinda path-finding in the ship (I highlighted a ship in red to see arrows better).
- One element is only attached to a single other. This leads to quite "weak" structures, that is what I want. If you break a block all the connected parts will be "freed" from main ship.
- Unlike Captain Forever, the ships will break down into smaller pieces (they won't be destroyed). These parts, in certain cases, will continue to live as independent ships (yes, like lizard tail : ). If a ship is broken in two parts, and each one has engines, they will try to flee (or even attack the player if they have weapons left).
As you can see, structure is already important. With a single shot on the side, I can easily break the big square in 2 parts, because its structure is made in "S". But after this, i shoot multiple time in the center, with nearly no effect. Fighting strategy coming