Skip to main content
GameDev.net gamedev.net
🔒 Locked

Code Design in Teams

Started by Chad Smith Dec 18, 2005 at 4:32 PM 3 replies 600+ views
Original Post
Chad Smith
Chad Smith
Alright, I am working on my first big game. I haven't recruited a team yet, but soon I will. I haven't done work on a team before, but I have made some games. Since I don't know how code design works when your working with teams, I wanted to ask some questions here. Ok, lets say that I am coding the game, and my other coder (lets say he is the AI Programmer) is working on the AI for the game. Now, I was wondering how does the team keep up with each others code? Do you like put everything in like...a seperate .h file? Like...would he make a AI.h file, and sends it to me, and I just make the call into my main, and include AI.h? Is that how it works? Thanks to all who shed some light on this. Chad.
ToohrVyk
ToohrVyk
First, using CVS (or a similar alternative - I would personally advise using Subversion) will make your life easier, because you can keep a stable and shared version of the source code somewhere. Then, the development process is a sequence of iterations as follows:


  1. Lead programmer decides on what should be implemented next. He then divides the task into independent and parallel tasks that should be worked on by the different coders.

  2. Each programmer starts working on the files that pertain to his part of the job. Since the tasks are independent, each file is only edited by one programmer.

  3. The programmers write their code, using the code that already exists. They then test the code they just wrote (for instance, using unit testing or various other forms of testing).

  4. Once the code passes all tests (and, of course, compiles), the files are submitted through source control.



Once a programmer checks in his code, he gets a new task (either to write additional code, or to correct old code). Always make sure people have separate tasks, and each file is being worked on by only one programmer (use locks provided by your source control system to enforce this).
Code-R
Code-R
You'll need to use some method of source control. lookup and read about Subversion.
Chad Smith
Chad Smith
Hey,
Thanks for that y'all! I am looking into CVS right now, and I will see how it goes.


Thanks again,
Chad.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.