There so many little things that need attending sometimes. This last month I've spent going over my entire code and removing and reworking sections of it. My train of thought started with something like this:
I'm going to work on entity AI!
Oh wait I need to get them to move first.
Better refactor my movement algorithms.
Ugh this is taking a while to compile, better go through and refactor some sections.
Hmm, this would be easier if I could assign input keys in game.
Hey and why isn't there any sound, how does that work?
Oh wait, how do I connect it to my current setup?
Better redesign the data type structure.
Oh wait, how DO I want the ship systems design to work?
Better work out how I want ship systems to work.
One intention lead to another intention which lead to twenty others etc. The end result of a month of this is:
- Removed 5000 lines of code I'll be redeveloping.
- Implemented a first pass for customizing Input Settings.
- Implemented a few sounds and music to begin getting a feel for how to approach programming for it.
- Refactored my ship movement algorithms to apply them to any ship object.
- Reorganized the data types to take into account a new ship data organization.
- Refactored the mining beam to a limb rather then an object.
For the moment its at a better place now to attach a single code algorithm to multiple entities. I expect I'll be reevaluating along the way as well. For me at least I find there's only so much planning I can do ahead of time before I need to get into the programming of it to get a better sense of what works and what I hadn't thought of.
At any rate, I just started a first pass ship construction UI prototype. Forgive the scrunchy text, the text doesn't scale well for now.
Just a rough idea for now. I've been playing around with fonts a bit too. Ultimately though this helps me work out what exactly I need data wise and how I want systems to work together. Its a long process of refining that will result in reworks and redesigns but slowly bring it closer to what I intend, if its possible of course.
Also I occasionally get distracted in Blender and randomly create a 3D object.
This day I was thinking of cargo systems and created a cargo pod.
So progress for sure. The code base is in a better place now for where I want to go with ship objects and mechanics. I'm going to be working on ship systems for a while and really fleshing out that system because so many things depend on having that setup as I intend it to be. Should be interesting to see how things develop over the next month or so.
Enjoy the day!