I've come to the rather sad conclusion that I may have to start over from scratch due to having not properly planned out the game as well as poor coding principles. I may have compromised good coding practice in a desperate bid for the compiled simulation to "just work, dammit." There are some nasty memory leaks, unresolved pointers, and convoluted references throughout the code.
One thing I'm fairly certain of is a need to have a properly fleshed-out design document. Without that, you get what I have now - a hard-to-read and even-harder-to-fix mess. So I'm going to need to sit down and anticipate every screen, control mechanism, model format, AI and every possible device I could implement so that later integration is not a complete shitshow ripe with misplaced global variables and pages of repeated code.
Luckily, much will be reusable so I won't have as much work ahead of me as it would appear. But the slider controls on the menu system need fixing because they are not independent of the rest of the game right now. And that's bad.
No comments:
Post a Comment