Page 1 of 2

Learning C++ To make Games

Posted: Mon Sep 14, 2009 5:06 pm
by zoodog411
Hey Im Logan I have been interested in makeing games since i was about 10 years old.Over the Years I Have Screwed With RMXP and GM7 when i was 10-13(im 15 now) and now I am very serious in what i need to learn how to make games professionally. I have Borrowed a book From a friend it is Fundamentals of c++ understanding programming and problem solving by kenneth .a Lambert. I am not sure If that book Will due?

I was looking through it and In one Day I accomplished to Learn a little Bit?

Code: Select all

#include <cstdlib>
#include <iostream>
#include "string"
#include <iomanip>
using namespace std;
string name ; // defines name as a string like defineing a number but with letters string insteed of int also
int age ;


int main(int argc, char *argv[])
{
    cout << "enter your name"<< endl;
    getline (cin, name); 
    cout << "now enter your age" << endl;
    cin >> age ;  
    cout << name << "you are" << age << endl;
    
    system("PAUSE");
    return EXIT_SUCCESS;
}

Code: Select all


#include <cstdlib>
#include <iostream>
#include <iomanip>
using namespace std;



int main()// begins a module simmular to def main()
{
    
    double score1=75.5;// double means decimal number int means normal numbers
    double score2=89.4;
    double score3=10.6;
    double average=(score1 + score2 + score3) / 3.0;
    double anser = (score1 * score2);
    cout << "score1 = 75.5" << endl;
    cout << "score2 = 89.4" << endl;
    cout << "score3 = 10.6" << endl;
    cout << "the average is"  << setw(5)<< average << endl ;
    cout << endl << endl;
    cout << "the anser is" << setw (7) << anser << endl << endl;
    cout << setprecision(3) << setw(10) << -3.455 << endl; // this makes it so it shows the first 3 digets and rounds the number
    cout << setiosflags(ios::right); // this makes it so it appears spaces after the number not b4 it
    cout <<  " thing " << setw(10) << " thingy" << setw (20)<< endl;// this makes it so i can make a curtain amount of spaces between words
    cout << setw(10) << 50 << setw(20) << 100.7687 << endl ; // this  prints numbers neatly with 10 spaces between them
    printf("hello "); // printf is the print statement and the "hello" is what is typed /n means endline
    cout << "this is a test" << endl; // if i dont use namespace std this wont work
    system("PAUSE");// makes it so the program doesnt close imediately after its done running
    return 0;// ends the program
    
    
}

Both of these are working codes.

My overall Question is do i just follow what is in my book will i eventually Be heading in the right Direction?
Will I really need to know all this stuff?

Is my book too old?

Sorry if i sound like a noob But what is the most effective way of learning C++ and all the other shit I need to know to make a Game?

Can i have someone that is experieced Help me out and recomend what i should do?

Re: Learning C++ To make Games

Posted: Mon Sep 14, 2009 5:19 pm
by Bakkon
Keep following your book or start looking at online tutorials. You're learning fundamentals that'll be the basis of newer things later on. Eventually you'll reach a point where you'll have to learn by experimentation and thinking for yourself. If you learned those building blocks well enough, it shouldn't be much of a problem.

Re: Learning C++ To make Games

Posted: Mon Sep 14, 2009 5:39 pm
by Moosader
Bakkon wrote:Keep following your book or start looking at online tutorials. You're learning fundamentals that'll be the basis of newer things later on. Eventually you'll reach a point where you'll have to learn by experimentation and thinking for yourself. If you learned those building blocks well enough, it shouldn't be much of a problem.
I concur.

It sounds like you're off to a great start, Logan. Learn about C++, and once you're familiar with the 'intermediate topics' like Classes, Inheritance, and Pointers, I think you'll be ready to start trying to make games.

Until then, play around with what you're learning. When I first started out I made mad libs, and little text games.

Re: Learning C++ To make Games

Posted: Mon Sep 14, 2009 5:47 pm
by zoodog411
Moosader wrote:
Bakkon wrote:Keep following your book or start looking at online tutorials. You're learning fundamentals that'll be the basis of newer things later on. Eventually you'll reach a point where you'll have to learn by experimentation and thinking for yourself. If you learned those building blocks well enough, it shouldn't be much of a problem.
I concur.

It sounds like you're off to a great start, Logan. Learn about C++, and once you're familiar with the 'intermediate topics' like Classes, Inheritance, and Pointers, I think you'll be ready to start trying to make games.

Until then, play around with what you're learning. When I first started out I made mad libs, and little text games.
I guess ill screw around with the book a bit until i have learned enough and feel confident to make a ssmall game and work my way up to bigger things

Also is gyrovorbis Dead?

has the Mirc Chat Server Been changed?
No one is on it?
Also My book isnt To old? will I be Confused When I Look at tutorials or other stuff online b/c it may be newer?

Re: Learning C++ To make Games

Posted: Mon Sep 14, 2009 6:12 pm
by Bakkon
zoodog411 wrote: 1) Also is gyrovorbis Dead?
2) has the Mirc Chat Server Been changed?
3) No one is on it?
4) Also My book isnt To old? will I be Confused When I Look at tutorials or other stuff online b/c it may be newer?
1) Nope, quite alive.
2) Don't think so, check the announcement thread.
3) Talking in it now.
4) Doubt it. C++ hasn't change that much.

Re: Learning C++ To make Games

Posted: Mon Sep 14, 2009 6:20 pm
by Moosader
Make sure you connect to
/server irc.freenode.net
/join #elysian_shadows

Usually there's a ton of people in the room, though they might be away.

Also, generally, C++ doesn't change much (the language itself, anyway). I don't think you have to worry about the book, unless it's pre-standardization or something.

Re: Learning C++ To make Games

Posted: Mon Sep 14, 2009 7:01 pm
by Falco Girgis
zoodog411 wrote:Also is gyrovorbis Dead?
Yes.

Re: Learning C++ To make Games

Posted: Mon Sep 14, 2009 7:33 pm
by zoodog411
GyroVorbis wrote:
zoodog411 wrote:Also is gyrovorbis Dead?
Yes.
HAHA :lol:

Hey When are you coming with more Videos? :mrgreen:

Re: Learning C++ To make Games

Posted: Mon Sep 14, 2009 7:34 pm
by Bakkon
zoodog411 wrote: Hey When are you coming with more Videos? :mrgreen:
When the resurrection ceremony is complete.

Re: Learning C++ To make Games

Posted: Tue Sep 15, 2009 12:04 am
by XianForce
Moosader wrote:When I first started out I made mad libs
I can't believe I never thought of that... it sounds fun as hell!

Re: Learning C++ To make Games

Posted: Tue Sep 15, 2009 4:31 am
by programmerinprogress
I remember when I was starting out when I was 14/15'ish, I made mad libs in visual C#, there's nothing better than typing the same silly word into all of those fields and seeing the hillarious results :lol:

If only life was so simple now...

Re: Learning C++ To make Games

Posted: Tue Sep 15, 2009 5:02 am
by zoodog411
waht are mad libs?

Just Random Shit Put together? :roll:

Re: Learning C++ To make Games

Posted: Tue Sep 15, 2009 5:09 am
by Bludklok
zoodog411 wrote:waht are mad libs?

Just Random Shit Put together? :roll:
:google: :)

Re: Learning C++ To make Games

Posted: Tue Sep 15, 2009 8:53 am
by dandymcgee
zoodog411 wrote:waht are mad libs?

Just Random Shit Put together? :roll:
And I thought I was a deprived child.
http://en.wikipedia.org/wiki/Mad_Libs

Re: Learning C++ To make Games

Posted: Tue Sep 15, 2009 9:28 am
by zoodog411
dandymcgee wrote:
zoodog411 wrote:waht are mad libs?

Just Random Shit Put together? :roll:
And I thought I was a deprived child.
http://en.wikipedia.org/wiki/Mad_Libs

O that shit =)