Sign in to follow this  
DragonBooster

Re-learning C++ and some help with learning it.

Recommended Posts

DragonBooster    367

Hi guys, its been a while. Due to some complicated and private matters i wasn't able to program much in C++ and the thing is, for some reason the 3 years of C++ i had i forgot all of it. I think the problem may be mainly because i wasn't doing much coding and rather just reading without doing many programs. Now because i have some time to create a game that i honestly badly want to create i have ran into this problem.

 

I have bought the C++ Primer 5th Edition and my main problem is that for some reason whenever i read after like an hour or so and trying to concentrate as hard as i can on reading the C++ Primer 5 Edition and doing its exercises i always start getting dissatisfied with it and i feel so De-motivated and bored. that after 2 hours I stop and i feel as if... I didn't learn anything at all even though i did my best reading the book and trying to do the exercises.

 

I always just want to get to actually making the game but the thing is and its something that 3Dreamer was absolutely correct about is that, before making a game you should start making very small programs and build your way up from there which he is honestly very right in, because how can i make a 2D game (I think making a 2D game first is a better choice than a 3D game) if i can't even complete some of the C++ primer exercises (its mainly the bookstore program which i didn't get at all, the rest of the getting started chapter i can manage).

 

Another problem is that i don't feel like I've learned anything at all even after i did the exercises correctly and tried to do variations of the exercises. Mainly because for me, unless I see a moving sprite or something do i feel like I've actually gone somewhere with what i am learning. I am not trying to say its the books fault, i am mainly just confused whether i should make a 2D pong clone first while learning C++ or do text games first which make me kind of lose interest because that's not what i am trying to create at the end of the day.

 

But at the same time whenever i see games that i like, I always get that motivation to try to make games the developers inspire me to but my impatience causes me to lose interest whenever i try. I also try to find some exercises online but for some reason the ones i find are very difficult for me to understand and i am kind of lost on where and what i do.

 

The thing is no matter how hard i try and deal with it, in the end i feel like I've learned nothing. Would you guys say its best i start making Pong clones,Space invader clones or should i just keep with text games and then move on to the pong,space invader clones?

Share this post


Link to post
Share on other sites
ankhd    2304
Hi. There is nothing stopping you from starting work on a 2d or 3d
Game. I did 3 years of c c++ at tafe. Had all the basics. Like link list and data type. With all that under my belt I started my first 2d rts game. Sure it was a hard slog learning directx 7 at the time. The hardest part back then was doing alpha blending because you had to support 16 and 15 bit displays sucked big time. In the end I had a 8 player multi play rts game. Which in turn landed me a job at Ratbag games in Adelaide.
After that being said you should just start on your game and do the learning on the job. This way you should fill it's more rewarding this way because it's part of your goal.

Share this post


Link to post
Share on other sites
DragonBooster    367

Zanman777 and everyone i honestly want to thank you for your help for helping me with this i greatly appreciate it and Zanman777 you are absolutely correct, that is pretty much how i feel and i wouldn't mind working together with you. Aardvajik, ankhd i totally agree with you guys and honestly i want to thank you for your help, i kind of got re-motivated to start some C++ programming again :)

Share this post


Link to post
Share on other sites
Eck    7581

As others have said, the early days are some of the toughest to stay motivated with. Learning about variables, loops, and branching are boring in isolation, and seeing your "guess a number" game in action doesn't really light a fire in your heart. But know that these fundamentals are the building blocks for everything else. Do what Mr. Miagi says and wax on/wax off. One day you'll be looping through a list of bullets and checking for collisions. Huzzah.

 

It sounds like you might be ready to move on to using a framework. If you were using C#, I'd recommend monogame and some tutorials that could get a sprite moving around on the screen in short order. It's way more inspirational than "Hello World!" :) If you're not dead-set on C++, it's a fine option.

 

http://rbwhitaker.wikidot.com/c-sharp-tutorials

http://rbwhitaker.wikidot.com/monogame-tutorials

 

If you are dead set on C++, do some googling or wait for someone nice to suggest a good option. :)

 

- Eck

Share this post


Link to post
Share on other sites
zee_ola05    334

I felt that same way too when I was reading C++ Primer 5th edition. It is a long book, and you can't read it straight and master it in one run. Forget about finishing the book. Use it as a reference. Go ahead and pick a Game Framework/Engine (I suggest cocos2d-x). As you learn cocos2d-x, look at other people's examples, you'll eventually learn C++. This way, you get to make the game that you want and learn C++ (and the engine) at the same time. Now, if you feel confused about the code, that's when you pick up your book. I'm assuming you already got some programming experience, so it wouldn't be too difficult for you to try this process.

 

I find this learning process very effective. Because you get to see results, keeping you motivated.

Share this post


Link to post
Share on other sites
Bregma    9199
I feel the same way about playing the piano. I would really love to be able to tickle those ivories like a pro and every time I walk by it I feel a little guilty. I just hate not being able to play really well and I have ideas for some really good music, but I hate the learning and practice.

Is there an easier way to get to Carnegie Hall?

Share this post


Link to post
Share on other sites
DragonBooster    367

@Bregma I never said i hated the learning and practice, i was trying as best as i could to do the examples the book provided and read the material but felt like i achieved nothing. However, as many others above have posted very helpful tips, i became re-motivated and tried out their suggestions such as using it as a reference while doing something like a pong clone like zee_ola05 said which is a good idea to me and all the others above listed some things that have greatly got me out of my De-motivated state.

 

But i know what you are saying, there is no easy or magic way to tame a beast, it takes patience, dedication, creativity and adaptability to tame a beast like C++ so i definitely know what you mean by what you said.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this