So, as part of the project I am working on I am creating ships. Now, this is a turn based game and ships will have parts; front, back, left, right, and center. These areas will be able to be individually destroyed, and there will be components with in them (thrusters, engines, shields, weapons, sensors, ...) which can be destroyed as well. I am trying to figure out how to configure my node tree for the ship (also the ship will be controlled by a controller node so that the code can be consolidated in order to control multiple ships, without each having unique code for that.
The question is how might be a good way to create the node tree, I currently have it set up something like this
TurnController (Node2D)
Ship (Node2D)
ShipArea (Area2D)
Front (CollisionShape2D)
Weapon1 (Sprite)
Thruster (Sprite)
Back (CollisionShape2D)
Weapon1 (Sprite)
Left (CollisionShape2D)
Right (CollisionShape2D)
Center (CollisionShape2D)
I just feel like there must be a better way to do this, and maybe simplify my node tree.