Sign in to follow this  
DevTony

SDL or Allegro

Recommended Posts

DevTony    104
Hey Im currently Learning C++ and im Wondering what library would best suit me. SDL or Allegro?, I have searched through the forums but can only find mixed views and suggestions for different situations to mine.
So yeah I know some of the basics of C++ and I am aiming to build up to create 2-D Platform Games with horizontal scrolling, object collision etc. I want to know which is easier to learn?, which of the two is a better gateway onto more advanced stuff. Which is easiest to set-up in Visual C++ 2010 and any other information that may help with my choice.

Thank You in Advance :)

Share this post


Link to post
Share on other sites
BeerNutts    4400
[quote name='BrianTheProg' timestamp='1311098128' post='4837526']
DirectX hands down beats everything (in my opinion, but other people have different views).
[/quote]

I'm one that has a different view. Have you tried SFML? I've used DX, SDL, and SFML, and I still say SFML is the best by a pretty wide margin.

Share this post


Link to post
Share on other sites
Serapth    6671
[quote name='BrianTheProg' timestamp='1311098128' post='4837526']
DirectX hands down beats everything (in my opinion, but other people have different views).
[/quote]


For a 2D game, this advice is almost the definition of bad.



Either of the libraries ( plus SFML ) are all equally valid choices.

Share this post


Link to post
Share on other sites
prh99    520
[quote name='DevTony' timestamp='1310936315' post='4836489']
Hey Im currently Learning C++ and im Wondering what library would best suit me. SDL or Allegro?, I have searched through the forums but can only find mixed views and suggestions for different situations to mine.
So yeah I know some of the basics of C++ and I am aiming to build up to create 2-D Platform Games with horizontal scrolling, object collision etc. I want to know which is easier to learn?, which of the two is a better gateway onto more advanced stuff. Which is easiest to set-up in Visual C++ 2010 and any other information that may help with my choice.

Thank You in Advance :)
[/quote]

Both Allegro and SDL are fairly easy to learn, Allegro tends to have more canned functions (like quaternion rotations and a built in asset archive/ file system format etc) where SDL gives you access (greatly abstracted) and leaves it up to the programmer to implement the extras like the previously mentioned asset archive. That said I haven't used the 5.x version of Allegro. Setup is just a matter of pointing MSVC at the proper folders for the header files and libraries and then adding those libraries to Additonal Dependencies for the linker.

Share this post


Link to post
Share on other sites
cmasupra    145
I personally like Allegro 5. It has a lot of built-in capabilities that SDL and SFML don't have, such as searching directories. The documentation online is also very easy to follow and find what you need.

That said, though, I haven't tried SDL, only Allegro and SFML.

Share this post


Link to post
Share on other sites
DevTony    104
Heyy Thanks for all the replies, I dont think im gonna try direct x as im only beginning but im leaning towards allegro or SFML so ill check them out
Thank You :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this