Jump to content
  • Advertisement
Sign in to follow this  
game of thought

Good library to use for 2d game development with c

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

What is a good graphical library to use with c? Preferably i would like it to be quite low level and fast because i will be using it on a raspberry pi and i would like to learn about the computer itself while programming. Can anybody suggest any good tutorials for this library as well because google cannot tell me the quality of a tutorial from first glance?

Share this post


Link to post
Share on other sites
Advertisement

Did some searching, Cairo might also be a good candidate.


Do note however that Cairo is a Vector Graphics library, which makes it inefficient for bitmap based graphical processing (if that is what is wanted). Also, if used for game programming, you will need to use additional libraries for audio and input, or anything else that gaming libraries usually provide.

Share this post


Link to post
Share on other sites
Unless you do something unusual you'll be working with a Linux distro on the Raspberry Pi. Someone shared some tips for getting SDL working here if it helps -- they're using C++, but the SDL parts are the same. Lazy Foo's tutorials should help with using SDL itself.

Allegro is also a really good library with a very helpful community, but outside of the official documentation I haven't seen as much in the way of tutorials and reference materials.

You can probably also find some good information in the RPi wiki.


Hope that's helpful! smile.png

Share this post


Link to post
Share on other sites

Allegro is also a really good library with a very helpful community, but outside of the official documentation I haven't seen as much in the way of tutorials and reference materials.


There aren't quite as many, no, which is a shame. There are a few gems out there though. Unfortunately, most of the good ones I could think of were for Allegro 4, which is a bit outdated now. There was a thread start here on GDNet about an Allegro Tutorial series though, which looks promising: http://www.gamedev.net/topic/633675-great-tutorial-for-those-who-want-to-make-a-2d-game/

Share this post


Link to post
Share on other sites

Unless you do something unusual you'll be working with a Linux distro on the Raspberry Pi. Someone shared some tips for getting SDL working here if it helps -- they're using C++, but the SDL parts are the same. Lazy Foo's tutorials should help with using SDL itself.

Allegro is also a really good library with a very helpful community, but outside of the official documentation I haven't seen as much in the way of tutorials and reference materials.

You can probably also find some good information in the RPi wiki.


Hope that's helpful! smile.png


You can find a great video tutorial on Allegro here.

Share this post


Link to post
Share on other sites

Another suggestion is Allegro. It's similar to SDL, but gets updated more frequently and has a (IMO) more supportive community.

(Wow, I can remember using Allegro "1" back in its DJGPP days)

If you decide to use SDL, it's worth nothing SDL 2.0 gets updated almost daily if you get it from the repository.

Share this post


Link to post
Share on other sites

[quote name='LennyLen' timestamp='1351644036' post='4995638']
Another suggestion is Allegro. It's similar to SDL, but gets updated more frequently and has a (IMO) more supportive community.

(Wow, I can remember using Allegro "1" back in its DJGPP days)

If you decide to use SDL, it's worth nothing SDL 2.0 gets updated almost daily if you get it from the repository.
[/quote]

Hey, I started with DJGPP too... and with RHIDE (Old Borland text GUI IDE clone) for an IDE biggrin.png
Those were the days...

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!