Hi! I'm making a space game and I'm really confused on the architecture of my spaceship entity scene...
Right now it's a simple CharacterBody2D with sprite, collision and two components (screenshot attached). I'm starting to realize my current implementation isn't really good if i want to add new features to the ships, I also added a custom resource system to load stats into the ship object to instantiate different ships from the same scene. Also because my components aren't reusable in any way...
On top of that i'm going to redo the whole thing in RigidBody2D to use godots physic engine instead of my own maths.
Code isn't an issue i'll figure it out.
What do you suggest I do to structure the new ship scene?
My plans for the future include :
- Individual sprites for thrusters, weapons and wings, to make damages or upgrades more dynamic on the ships.
- Ship components that changes stats (mass, thrust => handling, damages, health, shields and so on...)
- Possibly ship interiors (this is quite ambitious but i'm sure i'll get there someday)
I'd be happy to provide code, screenshots and details about anything.
Thanks a lot for reading my spaghetti :)
PS : feel free to ping me i won't be mad i promise