Jump to content
  • Advertisement
Sign in to follow this  
shadowisadog

Which 2d game lib to go to next?

This topic is 4608 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

Hey there! I am a c++ programmer who has years of experience in c++, but until recently I have had no real game experience. For the past few months, I have been writing a card game using the Popcap framework and while it suites its purpose, it is a bit slow speed wise. As a result I am looking for a good, solid 2d game library that will allow me to write FAST 2d games in c++. I am not afraid to go low level, however I would like to avoid reinventing the wheel whenever possible as it saves time. I have looked at Allegro, SDL, and DirectX (I am not a big fan, popcap is based on this) so far. What I would like to know is what you guys would recommend as a good library for 2d games :). Here is a screenshot of my current game: Thanks for your help :D.

Share this post


Link to post
Share on other sites
Advertisement
Direct3D (if used properly) is actually pretty much the fasted you can get on Windows. Specifically look at the ID3DXSprite and ID3DXFont interfaces. Those are highly optimised wrappers for using 2D in 3D.

HTH,
Pat.

PS: Very nice background image and cards [smile]

Share this post


Link to post
Share on other sites
Quote:
Original post by darookie
Direct3D (if used properly) is actually pretty much the fasted you can get on Windows. Specifically look at the ID3DXSprite and ID3DXFont interfaces. Those are highly optimised wrappers for using 2D in 3D.

HTH,
Pat.

PS: Very nice background image and cards [smile]


or opengl, they both can be good for 2D

Share this post


Link to post
Share on other sites
Quote:
PS: Very nice background image and cards


Thanks :). This game was a team effort so the artist did all of that bit and I agree that he did a really good job on it ;).

Thanks for the help. I will look into the libraries you guys suggested.

Although one thing, the market I am after is casual gamers. As a result, I am not sure if I can use pure 3d acceleration (That is what my project manager tells me anyway). If I simulate 2d with 3d then won't people without decent video cards be unable to run my games?


Share this post


Link to post
Share on other sites
Opengl enjoys wide comapatbility with most computers. Given that you would only have to use its basic features to churn out a 2D game, I think that would work fine. If you don't know how to use Opengl, try the Nehe tutorials: http://nehe.gamedev.net

Share this post


Link to post
Share on other sites
Quote:
Original post by shadowisadog
Quote:
PS: Very nice background image and cards


Thanks :). This game was a team effort so the artist did all of that bit and I agree that he did a really good job on it ;).

Thanks for the help. I will look into the libraries you guys suggested.

Although one thing, the market I am after is casual gamers. As a result, I am not sure if I can use pure 3d acceleration (That is what my project manager tells me anyway). If I simulate 2d with 3d then won't people without decent video cards be unable to run my games?

that's not true. you could use OGL without extensions and reach 100% of PC (Mac and Linux) users. or... you could use D3D7 (with PCs not other non-Win32/64 OSes) and have the same reach. The trick is not to use all the fancy tricks the newer versions provide you with.

[Edited by - Alpha_ProgDes on December 30, 2005 4:40:26 PM]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
If cross-platform compatibility is important, you can use openGL with SDL. SDL handles the platform dependent stuff like creating a graphics context, as well as providing access to low level subsystems other than graphics, like sound and input.

Share this post


Link to post
Share on other sites
Be careful not to confuse engines and libraries. The Popcap Framework is exactly that, an engine, a.k.a. framework.

You said you looked into Allegro, SDL, and DirectX. Allegro is a framework. SDL and DirectX are libraries. You will be re-inventing more of the wheel if you go with libraries instead of an engine.

Look here: http://gpwiki.org/index.php/Game_Engines

Specifically:
HGE
Goblin2D+
Photon
Popcap Framework (which you used)
PTK
Clanlib (calls itself a framework)

It seems Allegro calls itself a library, I haven't used it but I have heard a lot about it and it seems more like a framework.

The lower the level, the more power, the more work.

Share this post


Link to post
Share on other sites
I guess I will just have to play around and see what works best. I already know popcap so if I can't find something better, then I will just stick with that :).

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!