Jump to content
  • Advertisement
Sign in to follow this  
Lord Banshee

I want to rewrite my old game... where to start.

This topic is 4710 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok about 3 years ago i wrote a space shotter in DirectDraw. since then i really did any work with API or anything. So i figure best why to get back into is use all my old gaphics and sound files from my old game and try to rewrite the game cleaner,better, and more features. Like i said, i have not been into game programming for a while so do you think i should try to write it in SDL? SDL DirectX? SDL OpenGL?. What about the Sound if i go with SDL? does it have a sound libary too? Thanks, Chris

Share this post


Link to post
Share on other sites
Advertisement
SDL sounds like your best bet here. It is a little slow, but easy to learn, and yes, it has sound capabilities via SDL_Mixer.

Share this post


Link to post
Share on other sites
SDL is a nice library for pixel pushing.
SDL runs atop of DirectX on windows, if you're pixel pushing.
SDL can be used to set up an OpenGL context, just like GLUT can.
SDL can't wasn't designed to be used to set up a DirectX context, AFAIK, if that's what you meant by "SDL DirectX".
OpenGL (no matter how set up) is nice for games with rotation that don't want a seperate sprite for each facing.

Which is best depends on the game :-).

And as Sir Sapo has allready pointed out, SDL does indeed have sound, see the SDL_Mixer documentation.

[Edited by - MaulingMonkey on June 30, 2005 1:30:49 AM]

Share this post


Link to post
Share on other sites
Ahh yes Thanks i guess i miss read something about the DirectX Part.

On the OpenGL side of SDL, what do you mean about "don't want a seperate sprite for each facing"?

One would make a polygon and texture is like one would make a Sprite in a DirectDraw Since right.

Share this post


Link to post
Share on other sites
What we mean is that instead of making a sprite for each direction a player can face, you can make one image, texture it onto a quad, then rotate it when you have to. It saves loads of time and filespace, instead of 16 100kb images, you can have 1, and it will work the same.

Share this post


Link to post
Share on other sites
Quote:
Original post by Boder
Here is the article on SDL and Direct3D.


That'll teach me to make claims about what libraries don't work together.. :P. Well maybe it will. Previous post edited.

Share this post


Link to post
Share on other sites
Quote:
Original post by Sir Sapo
What we mean is that instead of making a sprite for each direction a player can face, you can make one image, texture it onto a quad, then rotate it when you have to. It saves loads of time and filespace, instead of 16 100kb images, you can have 1, and it will work the same.


I don´t see a reason why that shouldn´t work with D3D? You could also build a quad (2 tris), use a rotation matrix and your done?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Quote:
Original post by Sir Sapo
What we mean is that instead of making a sprite for each direction a player can face, you can make one image, texture it onto a quad, then rotate it when you have to. It saves loads of time and filespace, instead of 16 100kb images, you can have 1, and it will work the same.


Are you talking about the differences between top-down and isometric?

Share this post


Link to post
Share on other sites
Quote:
Original post by Sir Sapo
What we mean is that instead of making a sprite for each direction a player can face, you can make one image, texture it onto a quad, then rotate it when you have to. It saves loads of time and filespace, instead of 16 100kb images, you can have 1, and it will work the same.


Isn't that that same thing Direct Draw did?

I had one image filled with many sprites and i believe when i wanted different images say for an animation, i would move the RECT of the Sprite so it would show a different part of the image.

Oh and i remember there was a forum around all about 2d Programming? It was pretty big and i found it like a year ago when looking into OpenGL but lost the link anybody know what i am talking about?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!