Skip to main content
GameDev.net gamedev.net

PRO Tired of ads? Read GameDev.net ad-free and help keep the community independent with GameDev Pro — $3/month.

Destructing spaceships

Destructing spaceships

peous
peous
SpaceBeam development · · 1 min read
3,329 7
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).


proto4screen1b.png


  • 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).

      Result

      [media]
      [/media]

      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 rolleyes.gif

Discussion

Loading comments...