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!
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.
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 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.