Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


How should a program be structured?

This topic is 6327 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

How should a program be structured code wise? I have been talking to pouya about this. He uses a base abstract class that contains other classes, which contain the functions that the program uses (as far as I can understand it). I have been using a gamestate based thing where the whole program controlled by the gamestate - like a giant finite state machine. When I need some more code added, I add on another .h and another .cpp file with a new class in them and some functions. I have classes for d3d, input, sprite stuff, etc. Does anyone know of any articles that deal with how to structure a program codewise?

Share this post

Link to post
Share on other sites

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