Archived

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

WildWest

From a modular game to OOD

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