Jump to content
  • Advertisement
Sign in to follow this  
Lemony Lime

Getting started with C++

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

I'm not new to game development, or C++... but I am new to game development with C++. I've been using Multimedia Fusion 2 prior to this, and have spent about a year in college learning C++ now, so I'm hoping to ditch MMF2, and move onto some real game coding. Which libraries would you recommend I get started with?(Specifically for 2D games at this point.) We don't start using them in school until next fall, so I haven't used a library with C++ before.

 

A few popular ones I've heard of (but honestly know nothing about) are Allegro, OpenGL, SDL, and of course DirectX. I'd probably be more interested in something that could simplify things for me a bit to get started with, which I imagine would be none of these. Any ideas along those lines?

Share this post


Link to post
Share on other sites
Advertisement

Well, OpenGL and DirectX are not 2D libraries, although they can certainly be used for rendering 2D if you want.  They're probably not the best choice for you right now since you want to keep things as simple as possible and dont need any 3D functionality.

Share this post


Link to post
Share on other sites

I would recommend SFML 2.0. It is object-oriented, has a helpful community, and itsn't that hard to setup. (There's even a guy that provides a Code::Blocks project for it so that all you have to do is put in your installation path.)

Share this post


Link to post
Share on other sites

As previously said DirectX and OpenGL are not 2D libraries even if they can be used to for 2D rendering. SFML is something I've worked with, but only during 2 months or so. Me and some friends did a 2D game with it in college last autumn and it was pretty easy to work with. On the other hand I've programmed C++ for 3 years prior to this, so dunno how well you can code and if you can manage SFML.

When I started my first year in college we instantly started with C++ and after 6 months or so we were introduced to a 2D engine called HGE. We used that to make a simple(very simple) game for mobiles. It was 3 years ago so I'm not sure how I would feel about HGE now when I know a lot more, but I remember HGE being pretty easy to use - even as a beginner. But then again, programming was generally confusing at that time so maybe HGE isn't good at all ^^!

Might be worth checking up on, though. If HGE turns out to be too confusing I would really recommend SFML due to its helpful community and its broad usage.
 

HGE: http://hge.relishgames.com/ There are some example games posted on this link as well, might be interesting to check them out as well.

 

Good luck coding! biggrin.png

Edited by PwFClockWise

Share this post


Link to post
Share on other sites

I was thinking about choosing between Allegro and SFML... and from what I've heard, SFML has built in networking capabilities, so I think I'll go with it. Don't plan on doing that right off the bat of course, but for the future, it seems like it'll be handy... so I'd say SFML it is.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!