For a 2D game, would it be smarter to use OpenGL for lack of DirectX's Directdraw?
For a 2D game, would it be smarter to use OpenGL for lack of DirectX's Directdraw?
No it would be smarter to use SDL or Allegro both are awesome
Woop?
Do I need the OpenGL library for SDL?
Who said DirectX lacks DirectDraw?
"...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers
You just need to get a pointer to the back buffer surface and then draw directly on the buffer surface. You must specify certain parameters in order for this to work with no flicker, but it is extremely fast and the buffer only needs to be locked and unlocked once per frame.
For me, doing 2D in openGL just seems like a headache. It just seems like a "fake" 2D. But I really suggest Allegro or SDL.
EDIT: Dont get me wrong, I love OpenGL, I just suggest allegro or SDL for 2D
Just because you like it doesn't mean it is well suited for that purpose. SDL goes a lot of the work for you like setting up the window, loading various image formats, etc. One other thing of note is that OpenGL can be added with minimal effort for extra power.Originally Posted by LiNk
Last edited by Frobozz; 08-27-2004 at 03:08 PM.
I heard that since version 8 they've removed it.Originally Posted by MrWizard
If doing 2D in DX, use textured quads instead of direct draw. See www.gamedev.net for tutorials.
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
Ohh..alright
Does anyone know a good sprite program, what do you use to make them?
I use PSP (paint shop pro) and usually the PNG format since it has lossless compression and supports alpha channels. There are prolly lots of other (also free) image programs out there.
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
Say I was using an engine that could run Zelda: A link to the past, how would my artist go about making the sprites? We cant find anything on the topic.
Programs like GIMP and iDraw are free and are good for this sort of thing. That is if I am understanding correctly.
Do you mean a game "like" Zelda, or are we talking about emulation?
Paint would probably be good for sprites since it can do zooming with a grid and supports PNGs (or at least the XP one does).