Author Topic: Looking for some libraries  (Read 4575 times)

0 Members and 1 Guest are viewing this topic.

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Looking for some libraries
« 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

 
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Looking for some libraries
« Reply #1 on: October 10, 2012, 09:51:45 pm »
Physics: Bullet Physics seems good.
OGG: The reference implementation should do the job.
The rest: SDL has all this and more.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
Re: Looking for some libraries
« Reply #2 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/

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/

Both are usable in C++.

Imma Cat! =^_^= :3 (It's an emoticon now!)
Spoiler For Things I find interesting:
Spoiler For AI Programming:
Spoiler For Shameless advertising:

Spoiler For OldSig:





Spoiler For IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: Looking for some libraries
« Reply #3 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!
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Looking for some libraries
« Reply #4 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.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Xaychru04

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 9
  • Rating: +0/-0
    • View Profile
    • Xaychru04's blog
Re: Looking for some libraries
« Reply #5 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 :)