• Advertisement
Sign in to follow this  

Where do I start learning c++

This topic is 2006 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 Cpt and I making a 2d 8 bit sandbox RPG game like Terraria. But the problem is I don't know where to learn c++ and what program to use for Mac to use to make the game. If you want any info I am running a MacBook and I have experience with photoshop and I would like to know if a can get a PDF of how to make a game using c++. And last if I make a game on Mac would it work on Windows when finished

See ya

-CaptainMinecraft

Oh and if you want info on the world of the game is going to be randomly generated with my custom terrain and you can break and place blocks

Share this post


Link to post
Share on other sites
Advertisement
Seek no more: http://www.cplusplus.com/ biggrin.png That link will teach you C++, but not how to make games(that will come later on). For making games you should head to the resources - books.

Here you go a link we go: http://www.gamedev.net/page/books/index.html/_/technical/game-programming-9/beginning-c-through-game-programming-r1427 Edited by Dwarf King

Share this post


Link to post
Share on other sites
A resource I can not stress enough is

'Professional C++' (2nd Edition), by Marc Gregoire, Nicholas A. Solter and Scott J. Kleper, it will bring you up to speed with well... alot of stuff. And most important of all - It teaches you HOW to program! It reaches on alot of topics, and its easy to approach. And if you download the source code that goes with it (and make sure you really go through it while reading), you'll pick it up in no time.

And you'll need to experiment alot to... it takes alot of time. I'm making the same journey myself

Share this post


Link to post
Share on other sites
I mainly use cplusplus.com as a reference site. Personally, I would buy a book and study C++ from it. There are quite a few articles on the internets about how to get a rendering system going, and you can experiment with game logic yourself.

Share this post


Link to post
Share on other sites
In the tutorial on cplusplus.com they have the blue and light grey sIDE on the program what program on Mac do you use to code?

Share this post


Link to post
Share on other sites

Seek no more: http://www.cplusplus.com/ biggrin.png That link will teach you C++, but not how to make games(that will come later on). For making games you should head to the resources - books.

Here you go a link we go: http://www.gamedev.net/page/books/index.html/_/technical/game-programming-9/beginning-c-through-game-programming-r1427

In the tutorial on cplusplus.com they have the blue and light grey sIDE on the program what program on Mac do you use to code?

Share this post


Link to post
Share on other sites
Don't bother with an IDE for starters. Just use your favorite text editor and compile with a terminal. It will teach you some fundamental things about compilers and if you ever switch platform you will always have a fallback in case you have no IDE since most compiler options share a similar interface.

Otherwise there's QtCreator, Eclipse, Code::Blocks, search stackoverflow for that one.

As for learning I recommend C++ Primer 6th edition. It has questions and exercises at the end of each chapter. It also covers C++x0 features.

Share this post


Link to post
Share on other sites

Or opt for Eclipse, it works in Mac

http://www.eclipse.org/downloads/


Good God no!

Recommending Eclipse as a c++ IDE is like recommending dynamite as a laxative. Yes, it might get the job done, but it will kill you in the process.

If Mac is the requirement, check out either XCode, Code Blocks or Qt Creator. If you must use a poorly configured Java IDE with C++ support bolted on, use Netbeans.

Share this post


Link to post
Share on other sites
I've really enjoyed bucky's tutorials on youtube (his youtube name is thenewboston): http://www.youtube.com/playlist?list=PLAE85DE8440AA6B83&feature=plcp
I use code::blocks.
I'm on tutorial 21 of c++, and I've gone through 40 of his java tutorials. It really helps being able to watch the tutorial, and he explains it very clearly for beginners. I'm taking c++ next semester and trying to get a head start on the class over the summer.

Share this post


Link to post
Share on other sites
If i had to make a suggestion start with this for the 2d game aspect:
http://www.kathekont...uide/index.html (note: This tutorial set was written for win32 but it DOES work in Linux, not Mac thoughsad.png)
Its an absolutely amazing in depth guide on how to build a 2d (overhead) game engine ONLY using c++ console. No need to worry about graphics yet, get the basics first.
A good C++ resource I would suggest is C++ Primer Plus by Stephen Prata its an amazing book for learning c++ with little programming knowledge.

Edit: Oh and I completely agree with DZee just write the source files in something like Notepad++ (google it) and then just compile using your terminal(or console i dont use mac) There is nothing more useful than seeing the raw compiler data when you have some kind of compile error. Edited by Attemptedhippo

Share this post


Link to post
Share on other sites
I agree that cplusplus.com helped me alot. What may help you alot too is look at the site's examples and try to translate it into english inside your mind. I think this what helped me alot. I havent touched C since I was a kid. Just now, I'm relearning everything. You'll get it, just hang in there! It's just less complicated when one understands easily. Hell, riding a bike was rough, a couple of tries it's more easier riding a bike. Just had to through a analogy.

Share this post


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

  • Advertisement