The farther I got into the project the more types of games I was coming up with that could use the framework that I am creating here. Everything I've done is pretty generic so far, but it was coupled with the game logic fairly tightly (or rather, where future game logic will go). If I wanted to make another game using the same structure I would have to re-engineer a lot of the code to reuse it.
So I recently spent some time breaking the code apart and creating a game engine that is separate from the game implementation. I took all the code dealing with graphics and devices and sprites and placed it all in a separate .DLL project that I could include into the main project. This was a fairly successful endeavor. The main game project doesn't even include references to the DirectX libraries anymore, just to the engine .DLL. The game project can just create Scene objects using the Scene base class from the engine and just worry about managing sprites and logic.
For what its worth, I called the engine the same as my design 'group', the FirstLight engine. Sounding important is all part of the fun, right?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment