How much planning do you do before programming the various systems in your game?
By that I mean how much of a system do you plan on a technical level before you starting working on it. Do you just think "I want a combat system that plays like this" and jump right in? Or do you sit down, make UML diagrams and outline how the combat system will work on a technical level and how it interfaces to other systems or other parts of your code. Somewhere in between or even more extreme?
The reason I ask is that for the most part I've just sat down and coded stuff, and figured out how it should work on the fly. Then I would later go back and change it as needed. However I've been working on a project inspired by Paradox Interactive's Victoria 2. I've found that the Pop (population/people) system requires a lot of interfacing with other systems such as how I am handling industry, taxes, good markets, etc. All of these are interconnected. Pops work in industries, pay taxes, and buy goods off the market. Industries use the pops as employees to produce goods to sell on the market, the industries also pay taxes and many times have to buy goods on the market too.
Sometimes I spend more time changing how things work than creating new code because I didn't think ahead and I "designed" my systems in such a way that it is difficult for them to interface together in a coherent manner or it ends up really messy. My "code by the seat of my pants" approach isn't working too well. In a current school project we design everything in discrete units before we start working on it. It is mostly just "What does this do, what data is it working with, what other systems does it need to connect to, what does it need as inputs, and what does it output" answered in a paragraph and a simple drawing with some boxes and lines, but I found it goes a long way. All our code is mostly independent and decoupled and makes connecting everything together relatively simple.
As a side note I have a few friends who refuse to do any planning on any projects because every project we tried sitting down and plan sizzled out and lost interest before any code was written. They now have an attitude that planning is just procrastination unless it is something you plan out in under 10 minutes when you get stuck. I personally blame the failures on undeveloped ideas and temporary enthusiasm of a new project that "sounds cool". They are actually really bitter about failed and unfinished projects which makes it difficult to work with them but that is a whole other subject.
I would like to incorporate more technical planning in my own non-school projects and I was curious to see what everyone else did.
Posted May 20, 2016, 10:09 PM UTC
Honestly after 20 years of programming, not a lot. I integrate my planning into my work. Recognizing when there's a hard problem and white boarding it out quickly. Code should be self explanatory, and if you need massive documentation its probably overly complex.
Same here, after doing this for years I just use my instinct and experience. Of course, this is only effective if you work alone.
It works in groups as well provided you have some division of responsibility and your team is mature enough to know when to bring others in.
Ditto. At this point, I think too quickly to plan things out on paper, doing that would just cause me to lose track. As long as your code is readable and well organized, planning is not necessary.