Original Post
Myself and a few others have just embarked on a project together. I believe we have the skills necessary to code the game, but I would like some advice on structuring the code. My initial design is the following:
- Interface Class (Will create the window and contain the main program loop)
- Graphics class (Will handle all the directx setups etc. and will also control drawing to the screen)
- Game class (Will capture user input, compile a list of required images and pass to the graphics class)
- Map Class
- Sprite Manager ( Will control all non player objects on the screen. Will be responsible for checking collisions)
This is a very rough outline of what I have so far. The other members of the team seem relatively happy with this initial design, but I would like some opinions on wether this is feasible and/or productive. The game class will create/maintain the map object, sprite manager object and will have a pointer to the graphics object. The Interface will create the graphics class and the game object passing it a pointer to the graphics class.
This is the first time I have even put my head to a game design, so am quite happy for it to be completely wrong.
We are using C++ with DirectX7 just incase that is relevant.
Thank-you for your time.
[edited by - hammerstein_02 on June 18, 2002 6:21:45 AM]