Jump to content
  • Advertisement

Archived

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

WildWest

From a modular game to OOD

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

Hi! I''m still in the process of learning game developing. When I started to write my own game engine it was modular programming style. But the big number of functions started to become confusing, so I decided to rewrite my code to an object oriented design. Has anybody good ideas on how to arrange the classes so that the code becomes easy and clear? Thanks in advance!

Share this post


Link to post
Share on other sites
Advertisement
You are asking impossible question, since nobody here knows your code. If you want help in a issue like this, you should either describe your program and its functions very extensively or allow access to your code for other readers on this board.

Share this post


Link to post
Share on other sites
It was more a general question...

Where do I put all the stuff like Initialising DirectX, drawing functions, window handling, function where i move my objects etc.?

And what things should I leave as global variables( e.g. for the state of the game)?


But I think I found all I wanted to know at:
http://nexe.gamedev.net/Tutorials/ViewTutorial.asp?tutorialfile=Pages/Tutorial6.5.myxml

The Wild Wild West - Desperado!

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.

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

Sign me up!