DxEngine source code
Speedy5 told me in a PM that he wanted to take a look at the source code of my 2D engine.
That was OK with me, because I was going to release the source later when my game was finished, but I found that I was unable to attach files to PMs.
So therefore I created this thread, prehaps others will find the code useful.
However I must warn you: Most of the source code was written three years ago and is quite messy. The only thing I've done in the recent days is the alpha blending and rotation code.
- 2D graphics
- Hardware alpha blending
- Hardware rotation
- Bitmap objects (animation, movement, etc.)
- JPG, BMP, PNG, GIF file formats
- In-game console
- Keyboard, mouse and joystick (only one) input
- WAV sound: streaming and normal sampling
The engine should be compiled as a DLL with the macro DXENGINELIB_EXPORTS defined.
Yea, I'm a butt, I never check my PMs. Hey thanks! I'll be looking at it and I'll PM you what I think.
what's the registry stuff for?
If Direct3D isn't available, the engine will try software mode and display a warning. The warning will only appear once, so it sets a key in the registry to tell the program that it has been shown.
oh no way, neat-o that is...
btw, sang-drax do you think you could help me w/ this direct input strange-ness?
another way is to store an empty file in the users tmp folder
also good for storing setting the user wants when the defaults can't be used.