Original Post
I am posting what I have so far as a template I am going to use for my 2d games I am making, I am attempting to make it completely reusable and all in directx. I guess it could be called a mini engine of some type, but I hate calling it that. Below is what I have implemented so far. Please tell me what I am missing or should add to it.
Initialization of Direct x
Textures - Loads into linked list
Sends to graphics function to be drawn to back buffer
Uses the LoadTextureFromFileEx function to load them
Graphics - Draws textures in texture quads to buffer for render
Input - Uses direct input to acquire input from the keyboard
Sound - Uses DirectMusic to play background noise
- Still have to work at playing a sound overtop of
background
----------------------------------------------------------------
This is what I have so far, I hope to put this as a .dll once it is done and get down to actually programming games.
My 2d games I hope to make is a Tetris clone, Breakout, and a Pac-man clone. These will be my first full games I have programmed, I have just been working on the above for the last 2 weeks to get this done first. I have made mini stuff before but never a complete game.
So if you would add anything to this to make this usable for all three of these games let me know. I was thinking of adding colision detection to the engine but not really sure how to do that yet. The only collision detection I have done so far is cheap tetris style by creating a playable area and marking where the block is and not letting it leave the basic array.
Any help would be very much appreciated, I will post the source when I think I have something worthy of it and get your advice again before I start the actuall game themselves.
Thanks Again in advance,
Plex