Jump to content
  • Advertisement

Archived

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

Moe

How should a program be structured?

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

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!