Jump to content
  • Advertisement
Sign in to follow this  

Program structure questions

This topic is 2901 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello again

I was wandering about how larger projects are actually structured in the real world. I know of the use of UML diagrams but am curious as to how the design of large projects are done.

I know this is a really ambigious question.

My project which is really quite small is already having further structuring problems although I am trying to sort them ASAP.

I have a class called Collisions - this takes care of normalising,point to plane,bounding boxes and barycentric co-ordinates testing. This is linked directly to my enviroment class - this draws things to screen and checks for collisions between the player and the enviroment.

This is finally loaded in my main that passes the player co-ordinates and wall co-ordinates to it. My main then also interacts with my controller class and camera class.
Does this structure sound reasonable?

It seems to work pretty well so far I understand that in big projects things will tend to get buried such as Linked list or VectorMath classes etc.

Are there any good tips on designing how the code should run. Should you start with the main and figure out what needs to interact together? Or do you do as much work as possible only adding it into the main at the end?

Really interested in how the real world works and software engineering design approaches.

Many thanks

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!