Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Need help with C++


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
11 replies to this topic

#1 MrOlle   Members   -  Reputation: 102

Like
0Likes
Like

Posted 03 March 2013 - 12:04 PM

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?



Sponsor:

#2 johnmarinelli   Members   -  Reputation: 304

Like
3Likes
Like

Posted 03 March 2013 - 12:29 PM

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.



#3 EddieV223   Members   -  Reputation: 1407

Like
0Likes
Like

Posted 03 March 2013 - 12:55 PM

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.


If this post or signature was helpful and/or constructive please give rep.

 

// C++ Video tutorials

http://www.youtube.com/watch?v=Wo60USYV9Ik

 

// Easy to learn 2D Game Library c++

SFML2.1 Download http://www.sfml-dev.org/download.php

SFML2.1 Tutorials http://www.sfml-dev.org/tutorials/2.1/

 

// SFML 2 book

http://www.amazon.com/gp/product/1849696845/ref=as_li_ss_tl?ie=UTF8&camp=1789&creative=390957&creativeASIN=1849696845&linkCode=as2&tag=gamer2creator-20

 


#4 Puyover   Members   -  Reputation: 190

Like
0Likes
Like

Posted 03 March 2013 - 01:40 PM

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.



#5 warnexus   Prime Members   -  Reputation: 1505

Like
0Likes
Like

Posted 03 March 2013 - 01:46 PM

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, 03 March 2013 - 01:47 PM.


#6 Servant of the Lord   Crossbones+   -  Reputation: 20965

Like
1Likes
Like

Posted 03 March 2013 - 03:32 PM

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.

 

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


Edited by Servant of the Lord, 03 March 2013 - 03:33 PM.

It's perfectly fine to abbreviate my username to 'Servant' rather than copy+pasting it all the time.
All glory be to the Man at the right hand... On David's throne the King will reign, and the Government will rest upon His shoulders. All the earth will see the salvation of God.
Of Stranger Flames - [indie turn-based rpg set in a para-historical French colony] | Indie RPG development journal

[Fly with me on Twitter] [Google+] [My broken website]

[Need web hosting? I personally like A Small Orange]


#7 lask1   Members   -  Reputation: 795

Like
0Likes
Like

Posted 04 March 2013 - 12:21 AM

Here are some nice basic C++ tutorials.

 

http://cplusplus.com/doc/tutorial/

 

and like everyone else has been saying go with SDL to deal with graphics, input, sound and etc.

 

http://lazyfoo.net/SDL_tutorials/index.php

 

Two months is enough time just make sure you work hard.



#8 SimonForsman   Crossbones+   -  Reputation: 6293

Like
0Likes
Like

Posted 04 March 2013 - 01:29 AM

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.


I don't suffer from insanity, I'm enjoying every minute of it.
The voices in my head may not be real, but they have some good ideas!

#9 Uberwulu   Members   -  Reputation: 164

Like
0Likes
Like

Posted 04 March 2013 - 02:22 AM

http://www.amazon.com/Programming-2D-Games-Charles-Kelly/dp/146650868X/ref=sr_1_1?ie=UTF8&qid=1362385309&sr=8-1&keywords=programming+2d+games



#10 MrOlle   Members   -  Reputation: 102

Like
0Likes
Like

Posted 04 March 2013 - 04:14 AM

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



#11 krrice   Members   -  Reputation: 120

Like
0Likes
Like

Posted 05 March 2013 - 06:06 PM

I would recommend these tutorials. To me they would be easier to learn and make a game in the time frame you have. Part 5 begins an actual full game the first parts get you use to the framework.

 

http://fixbyproximity.com/2d-game-development-course/


Edited by krrice, 05 March 2013 - 06:08 PM.


#12 PoliticalChaos   Members   -  Reputation: 151

Like
0Likes
Like

Posted 06 March 2013 - 09:50 AM

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






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS