Omnimaga

General Discussion => Technology and Development => Computer Projects and Ideas => Topic started by: Binder News on October 10, 2012, 09:42:24 pm

Title: Looking for some libraries
Post by: Binder News on October 10, 2012, 09:42:24 pm
Hey all! I'm building a game with a friend (computer game, not calc). I would like some recommendations for good libraries to use. I'd like them to be fairly lightweight, (ex. I'm using LodePNG for reading PNG files. It is only 1 .cpp file and a header file). Libraries should also run on Windows, Mac, and Linux, and need to be usable with C++.

Libraries Needed:
 - physics engine (doesn't have to be complex, I can work with just rectangles and circles if need be)
 - ogg file decoder (for Ogg Vorbis audio files. Will be used with OpenAL so streaming capabilities would be much appreciated).
 - graphics engine
   Required Features:
    - sprites
    - tile maps
    - text
    - any more advanced features welcome!
 - cross-platform input (Keyboard, Mouse, etc.)

Thanks in advance guys!

-Bindernews

 
Title: Re: Looking for some libraries
Post by: Juju on October 10, 2012, 09:51:45 pm
Physics: Bullet Physics (http://bulletphysics.org/) seems good.
OGG: The reference implementation (http://www.xiph.org/downloads/) should do the job.
The rest: SDL has all this and more.
Title: Re: Looking for some libraries
Post by: Scipi on October 10, 2012, 09:55:53 pm
For some of these, I use SFML or "Small Fast Multimedia Library". It can provide you graphics, ogg loading, and cross platform input.

For the graphics, it can load sprites and text, you'd have to write your own tilemap routine, though tilemaps are pretty simple to write.

SFML also provides networking support.

http://www.sfml-dev.org/ (http://www.sfml-dev.org/)

For physics, I've heard good things about Box2D. I haven't used it though, so I can't tell you much about it.

http://box2d.org/ (http://box2d.org/)

Both are usable in C++.
Title: Re: Looking for some libraries
Post by: Binder News on October 10, 2012, 10:08:57 pm
I like SFML and Box2D (I've heard good things about it as well). I think I will go that route, as it appears to have an API close to what I'm looking for. I'm working with someone who has pretty limited C++ experience, so these are probably the better way to go.
I was actually going to write a lot of this myself at first, but that would be such a waste of time when these libraries already exist.
Thanks! Consider my question answered!
Title: Re: Looking for some libraries
Post by: Juju on October 10, 2012, 10:36:00 pm
I've never messed with SDL or SFML, but I would go the route HOMER-16 suggested.
Title: Re: Looking for some libraries
Post by: Xaychru04 on October 11, 2012, 02:35:38 pm
I've used SFML, it's an excellent graphics library, and it also provides some interesting features like networking or pixel-shaders.
I just had some problems with the shaders (SFML1.6 has some little GLSL compilation problems), but some people said I should use SFML2.0.
I think Box2D is a good choice too :)