• Advertisement
Sign in to follow this  

Need help with C++

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

Hello! I'm in a bit of trouble. I was lacking some points I need to graduate and I was told I had to take another class. The only class that wasn't full was a programming class. Now I have to make a 2D game in C++ in two months and I have no idea where to start. I don't have very much programming experience, only really basic stuff in C++.

Is there someone who can help me? Where do I start? Is this even possible for me to learn this fast?

Share this post


Link to post
Share on other sites
Advertisement

lazy-foo.net is the standard SDL tutorial.  Although if you have very little programming experience and are only doing this for a class, I would really recommend looking for any way out of it.

Share this post


Link to post
Share on other sites

sfml is a very good library for 2d games in c++.  Its object oriented and has good documentation on the website.  Go for the 2.0 version, they have nightlys on forum in the general section grab one of those.

Share this post


Link to post
Share on other sites

If you are not very experienced in C++ I suppose you are neither with OOP, so I would recommend you to choose SDL instead SFML. Use structured C++ instead object oriented so you don't need to learn a whole paradigm at all.

 

If I'm wrong with your knowledge, just forget the previous paragraph and go full OOP with SFML.

Share this post


Link to post
Share on other sites

Just start building the game given what you know about 2D game programming. Once you got the game's simplicity implemented and it is bug-free. Then you can add anything complicated if you want. 2 months is enough time. Just start working on it now and you will see.

Edited by warnexus

Share this post


Link to post
Share on other sites

SFML, just because it uses classes, doesn't mean you have to use it in a OOP programming style. I would recommend SFML regardless of whether you use OOP or not (or even if you don't know what OOP means).

But... SDL is also good. They are both good, and SDL might be a bit easier to understand at the forefront - but maybe not. The real important thing is sticking with whatever choice you make without bouncing back and forth every time you encounter a problem.

 

As mentioned, the best SDL tutorial is Lazy Foo's. The best SFML one is probably the one on the SFML website.

 

[b][Edit:][/b] You only have two months? Jeesh. Go with SDL then.

Edited by Servant of the Lord

Share this post


Link to post
Share on other sites

Hello! I'm in a bit of trouble. I was lacking some points I need to graduate and I was told I had to take another class. The only class that wasn't full was a programming class. Now I have to make a 2D game in C++ in two months and I have no idea where to start. I don't have very much programming experience, only really basic stuff in C++.

Is there someone who can help me? Where do I start? Is this even possible for me to learn this fast?

 

Making a 2D game isn't necessarily that difficult, if you follow lazy foos tutorials tutorials 1, 2, 4,5, 8, 12,14 16 and 17 cover everything you need to know to make a simple game, everything else up to 32 is nice for more advanced games.

Share this post


Link to post
Share on other sites

Thanks for all the help. Seems like Lazo Foo's is the place to begin. I'll look into it and start right now!

Share this post


Link to post
Share on other sites

When I started out years ago, this is what I bought and it is in my opinion one of the best introduction's not only to C++ but also game development. Extremely user friendly book, comes with a compiler on a CD (Bloodshed C++) and walks you through everything step by step in simple English terms. Throughout the course of the book you make multiple games and at the end make a full on blackjack game. It's a lot of fun to walk through the book and you learn a ton.

 

http://www.barnesandnoble.com/listing/2682292875368?r=1&cm_mmca2=pla&cm_mmc=GooglePLA-_-TextBook_NotInStock_26To75-_-Q000000633-_-2682292875368

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement