Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have to develop a small arcade game in C++ for a college assignment using a 2D Game Engine my teacher coded. What would be the best way to make a UML class diagram for it? It's very basic stuff but I feel like I don't have the experience to make proper decisions on how to organize the classes. Seeing some examples of Class Diagrams from like Super Mario or any platformer would be perfect. For example would it be better to make a "Level" class where I load the bitmaps and handle the collisions, and then call this one in the main class, or just load my level stuff directly from my main class? Thanks in advance!

share|improve this question

closed as not constructive by Byte56, Josh Petrie, Maik Semder, Sean Middleditch, Trevor Powell Mar 25 '13 at 0:57

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

Possible duplicate:… – Byte56 Mar 22 '13 at 13:01
ASK YOUR TEACHER FOR EXAMPLES – bobobobo Mar 22 '13 at 16:29

Software design is not an exact science. There's no "the right way" to do something as complex (and vague) as a 2D platformer game. Didn't your teacher show any examples of UML? You should think about this as any other software (or complex system). A nice UML diagram should answer these basic questions:

What are your entities and what are the possible interactions between these entities?

Try following a top-down approach - going from the abstract, high level elements towards the small details.

"I don't have the experience to make proper decisions on how to organize the classes."

I think this is the point of your homework. If you never try to implement what you've been taught, your education was just a waste of time and money.

share|improve this answer
Alright great, thanks for the reply. I've been reading up on UML diagrams and I came up with this: – Dr. Zoidberg Mar 22 '13 at 15:06

Not the answer you're looking for? Browse other questions tagged or ask your own question.