Jump to content
  • Advertisement
  • entries
  • comments
  • views

Destructing spaceships

Sign in to follow this  


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

Sign in to follow this  


Recommended Comments

Thanks. As you can see it's more an iterative way of working than a fully designed game !
I'll keep posting my future updates here (now I'm still working with spaceship structure, there are lot of possibilities designing spaceships !!)

Share this comment

Link to comment
[left]It looks good. I doubt I could make anything like that, so my criticism next is from a player point of view rather than a development one. [/left]

[left]The ships [i]look [/i]like all neighbouring elements are connected to each other. The player cannot see how the connections are actually winding paths. This means from the player's point of view the breaking reactions to shots appear unintuitive. If I felt this was just my personal opinion I wouldn't say anything, but I suspect a lot of players will have the same opinion about it. [color=#282828][font=helvetica, arial, verdana, tahoma, sans-serif]I[/font][/color][font="helvetica, arial, verdana, tahoma, sans-serif"][color="#282828"]t isn't obvious why a single shot in one place will split the ship in half but a shot elsewhere has no effect. Perhaps you are planning something to alleviate that, although I doubt anything could.[/color][/font][/left]

[left]You say you want the ships fragile which I understand, but cant you achieve the same effect by connecting all elements to their neighbours and allowing attacks to "chew through" the body until they cut through? The interior elements of a ship could be slightly or very explosive so once you've chewed through the hull layer you could "split" a ship in half really quick.[/left]

Anyway that is supposed to be constructive criticism although I realize it is annoying in suggesting a system you've worked on for days is redone.

Share this comment

Link to comment
Don't worry, positive criticism is always welcome :) I expose my work on this blog to have feedback, like you do, so... thank you !

But you are right, if player doesn't know the structure (like in the video), he will be frustrated.

I would like to have a more subtle way of destroying ships than just breaking the outside then the inside. Two visually identical ships could have a different structure and be beaten different ways. I think gameplay would be more interesting.

Then the solution, from my point of view, is to have player to better understand the structure. How ?[list]
[*]I reworked the structure algorithm : it starts from the -blue- cockpit and then makes some kind of tree structure much more logical than previous "snake" structure
[*]I could display/orient the graphical blocks depending on where they are attached and have them less symmetrical
[*]Maybe a display mode "laser scan" could display ship structure for a short time[i] (I like this one)[/i]
If all this doesn't work (from a gameplay point of view), I will switch back to another way of connecting parts (like the one you suggested). this won't be a lot of change, as the structure algorithm is not merged with the destruction algorithm. In this case, I'll try your approach (that could work but is more classical).

Check out the results from the new algorithm. It could nearly be understood without displaying it.


What do you think of it ?

Share this comment

Link to comment
yes that's a lot more intuitive as it's like a skeletal structure and could probably be understood without displaying it. Perhaps there's a middle ground where instead of white arrows that are obviously an overlay there could be tubing on top of the ships hull that matches the skeleton but is part of the ship.

Share this comment

Link to comment
Sure, white arrows are debug display only, it won't be displayed like this at the end !
I'll think about how to display that "skeleton"....

Share this comment

Link to comment
I'd just like to say that this is a pretty cool idea altogether. I am in favor of the "laser scan"-display mode, maybe associated with a timer of sorts (so it doesn't show always). I think that could look good if done right. Good job and keep it up =)

Share this comment

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!