★ TouchArcade needs your help. Click here to support us on Patreon.

How organized is the code for multi-million lined games (WoW, CoD, Diablo 3, etc)?

09-05-2015, 09:43 PM
Joined: Oct 2014
Posts: 62
How organized is the code for multi-million lined games (WoW, CoD, Diablo 3, etc)?

Does anyone know how organized professional developers keep their code? As soon as my games hit a few thousand lines I feel it just becomes a hot mess. How do professionals do it?
09-05-2015, 10:23 PM
Joined: Aug 2013
Posts: 1,066
Have a look at:

http://www.toptal.com/unity-unity3d/...me-development (it is the same logic not matter what platform you are using)

Just make one class do one thing. Take advantage of inheritance (ie all your monsters should just extend your base monster class). Comment your code, start each class with a short comment of what it does.

The pros work the same way with the graphics engine giving an API to the people coding the gamelogic layer. They separating the engine from the logic is common.

Please follow me on twitter @JamesDestined I post lots of development from both my game creation and professional development.
Time to measure - Brain challenge https://itunes.apple.com/us/app/time...820864672?mt=8
The light box, can you solve it (free) (on google play too)
09-06-2015, 10:04 AM
It really depends. I have worked on stuff that was very modular and I have been on projects where things were just slapped together with hacks on hacks. I don't think there is really a right or wrong answer for this. Project scale also plays a factor to be honest as well as what constitutes the game's unique code and what is shared between projects (eg: Rendering Engine, Physics System etc).

Roguebox Studios
Like us on Facebook
Follow us on Twitter
Subscribe to our Youtube Channel
Daily pics on our Instagram
09-08-2015, 01:12 PM
Joined: Aug 2014
Location: Baltimore, MD
Posts: 26
Honestly, it mostly has to do with the company culture and team size. The game engineering team on ESO was very small for the type of game it was (MMO) - perhaps around 8 core engineers. With a small tight nit team I can say that the code was very clean and well maintained. Sure there are always a few spots that are a little rough - but overall it was put together very nicely.

Although I've never worked at other MMO companies, I've heard through the grapevine that the starwars MMO (can't recall, maybe SWTOR), had a pretty large team. And while they got things done quickly with so many engineers, the code base was a bit of a nightmare (too many cooks in the kitchen). Of course I don't know this from experience, more like second-hand rumor.

Another factor that plays a large role is how many hands the code base changes. In other words: how often the lead engineers are changing, how often new engineers are being added, or entire teams being traded out.

And of course, experience always plays a large factor. ESO had a very senior-heavy team, which I think played a strong role for its strong code base.