What library should I start with?

Started by
1 comment, last by CBreinholt 11 years, 7 months ago
I've been learning C++ in college, only 3 classes in, but I have a nice understanding of the language and I've been doing great. However, I am interested in expanding and learning game development. Just don't know where to begin, really. I hear C++ is too hard for a beginner to get into game programming, and that I should look into C#. (And for my first project, I want to make a 2D RPG, in the style of a Final Fantasy game).

If so, what library would I use to begin? I hear XNA is a great choice, but wanted a second opinion. I just never dabbled in C# before. Should I just stick with C++, as that's what I'm learning at school, and try to use the SFML library?
Advertisement
If you're already learning C++ and will be continuing to do so, then you might want to stick with it for now and could try creating a game with SFML, SDL or Allegro.

If you'd rather switch to C# -- to experience something different, widen your knowledge, or because you want faster and easier results with your game programming -- then XNA is an excellent choice.



I will advise that either way -- and I think you might already know this, but it's worth repeating -- you should aim to make a couple of smaller practice games before tackling a 2d RPG. You can learn a lot about how best to approach game programming from something like Pong or BreakOut, but without the complexity of a larger game. You don't need to spend a lot of time on this, but I think it will give you a better idea of how to get started and approach things when starting on your RPG.


It's really up to you, and both approaches have advantages and disadvantages, but you won't be harming yourself or face any setbacks in the long run from choosing either of these approaches.


Hope that helps! smile.png

- Jason Astle-Adams

I wouldn't try to learn a whole new language at the same time you're taking classes on C++, you might end up confused and start mixing them up a little.

If you really do have a good basic understanding of C++ and would like to start game development, look into the SDL and SFML libraries. Both are great starting points and are really easy to learn. I've done a decent amount with both libraries and would personally recommend going with SDL simply because I feel like there is more documentation around on the internet, making it slightly easier to learn.

A full-scale 2D RPG like Final Fantasy is definitely a big task to take on for your very first game development project! I'm not sure where your motivation level is on working on this project, but lot's of beginners that start out with big projects like this end up frustrated and/or stuck a month or two into development, and usually give up on the project. That being said, I would start off with some really small, simple projects to get a firm grasp of knowledge for whatever library you choose.

Start with getting an image on a screen and get down basic movements with the arrow keys. Maybe give the image some animations. Then work on a collision detection program, followed by a basic tiled map engine that uses your collision detection. Work on some image rotation and maybe loading/saving game states. I know it's not quite as fun, but it's definitely worth it to have all of these small projects lying around when it's time to work on a big project like a 2D RPG. You want to be prepared before taking on such a project!

After you get down all those basics listed above, start moving on to some more complex stuff like some basic Artificial Intelligence (A* is a good algorithm to start with), adding a 'scrolling' feature to your map engine, random map generation (could be used for caves/dungeons for games), etc.. Then start throwing all this stuff together in some smaller games. Tower defense games, Pac-Man clones, Pong-like games, etc. are all some great places to start! Once you've spent a lot of time researching and learning all these things, AND you feel confident, then you can start working throwing a prototype of a basic 2D RPG, then slowly make it more and more awesome. Just remember, these things take a lot of time, ESPECIALLY if you are going to do all the art yourself too.

Anyways, I'm not trying to kill your dreams of making a badass 2D RPG like Final Fantasy, just letting you know that it's much easier in the long run if you work up to it! Here is a great link to some guy names LazyFoo. He has some awesome tutorials on learning how to use SDL with C++, definitely worth looking at. Good luck!

This topic is closed to new replies.

Advertisement