Learning C++ To make Games

Anything related in any way to game development as a whole is welcome here. Tell us about your game, grace us with your project, show us your new YouTube video, etc.

Moderator: PC Supremacists

User avatar
zoodog411
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 15
Joined: Mon Apr 13, 2009 10:14 am

Learning C++ To make Games

Post 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?
Last edited by zoodog411 on Mon Sep 14, 2009 5:23 pm, edited 1 time in total.
User avatar
Bakkon
Chaos Rift Junior
Chaos Rift Junior
Posts: 384
Joined: Wed May 20, 2009 2:38 pm
Programming Language of Choice: C++
Location: Indiana

Re: Learning C++ To make Games

Post 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.
User avatar
Moosader
Game Developer
Game Developer
Posts: 1081
Joined: Wed May 07, 2008 12:29 am
Current Project: Find out at: http://www.youtube.com/coderrach
Favorite Gaming Platforms: PC, NES, SNES, PS2, PS1, DS, PSP, X360, WII
Programming Language of Choice: C++
Location: Kansas City
Contact:

Re: Learning C++ To make Games

Post 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.
User avatar
zoodog411
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 15
Joined: Mon Apr 13, 2009 10:14 am

Re: Learning C++ To make Games

Post 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?
User avatar
Bakkon
Chaos Rift Junior
Chaos Rift Junior
Posts: 384
Joined: Wed May 20, 2009 2:38 pm
Programming Language of Choice: C++
Location: Indiana

Re: Learning C++ To make Games

Post 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.
User avatar
Moosader
Game Developer
Game Developer
Posts: 1081
Joined: Wed May 07, 2008 12:29 am
Current Project: Find out at: http://www.youtube.com/coderrach
Favorite Gaming Platforms: PC, NES, SNES, PS2, PS1, DS, PSP, X360, WII
Programming Language of Choice: C++
Location: Kansas City
Contact:

Re: Learning C++ To make Games

Post 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.
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Re: Learning C++ To make Games

Post by Falco Girgis »

zoodog411 wrote:Also is gyrovorbis Dead?
Yes.
User avatar
zoodog411
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 15
Joined: Mon Apr 13, 2009 10:14 am

Re: Learning C++ To make Games

Post by zoodog411 »

GyroVorbis wrote:
zoodog411 wrote:Also is gyrovorbis Dead?
Yes.
HAHA :lol:

Hey When are you coming with more Videos? :mrgreen:
User avatar
Bakkon
Chaos Rift Junior
Chaos Rift Junior
Posts: 384
Joined: Wed May 20, 2009 2:38 pm
Programming Language of Choice: C++
Location: Indiana

Re: Learning C++ To make Games

Post by Bakkon »

zoodog411 wrote: Hey When are you coming with more Videos? :mrgreen:
When the resurrection ceremony is complete.
XianForce
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 767
Joined: Wed Oct 29, 2008 8:36 pm

Re: Learning C++ To make Games

Post 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!
User avatar
programmerinprogress
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 632
Joined: Wed Oct 29, 2008 7:31 am
Current Project: some crazy stuff, i'll tell soon :-)
Favorite Gaming Platforms: PC
Programming Language of Choice: C++!
Location: The UK
Contact:

Re: Learning C++ To make Games

Post 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...
---------------------------------------------------------------------------------------
I think I can program pretty well, it's my compiler that needs convincing!
---------------------------------------------------------------------------------------
And now a joke to lighten to mood :D

I wander what programming language anakin skywalker used to program C3-PO's AI back on tatooine? my guess is Jawa :P
User avatar
zoodog411
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 15
Joined: Mon Apr 13, 2009 10:14 am

Re: Learning C++ To make Games

Post by zoodog411 »

waht are mad libs?

Just Random Shit Put together? :roll:
User avatar
Bludklok
Chaos Rift Junior
Chaos Rift Junior
Posts: 241
Joined: Tue Apr 14, 2009 1:31 am
Current Project: EnigmaCore
Favorite Gaming Platforms: PC, N64, Playstation1, Playstation2
Programming Language of Choice: C++
Location: New Jersey
Contact:

Re: Learning C++ To make Games

Post by Bludklok »

zoodog411 wrote:waht are mad libs?

Just Random Shit Put together? :roll:
:google: :)
Youtube
Website
Current project: Enigma Core
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: Learning C++ To make Games

Post 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
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
zoodog411
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 15
Joined: Mon Apr 13, 2009 10:14 am

Re: Learning C++ To make Games

Post 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 =)
Post Reply