New to game programming

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Avishaiozeri
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 85
Joined: Wed Mar 17, 2010 4:32 pm

New to game programming

Post by Avishaiozeri »

Hi. Some years ago i started learning simple languages, like ASP, CSS , JAVASCRIPT, and some more things. All of them are just for internet websites development... Now i want to start learning c++ , for creating games. I saw it before, It kind of looked like JAVASCRIPT, so maybe it'll be easier for me to learn it. I'v just wanted to ask: In web programming, HTML (and css) is what used to design the page, what about C++? how does it work? I know its diffrent. I'v herd about opengl and Directx, but do i have to know how to use those libraries to develope, or display things other then letters on the screen? And if some one have some tips for me about c++ game programming, like what books to read and stuff like that, i'll be glad. thanks.

(sorry for the english:)
Last edited by Avishaiozeri on Wed Mar 24, 2010 10:24 am, edited 1 time in total.
User avatar
ChrissyJ91
Chaos Rift Regular
Chaos Rift Regular
Posts: 149
Joined: Tue Oct 28, 2008 5:36 pm
Favorite Gaming Platforms: PS1/2
Programming Language of Choice: C/C++
Location: UK

Re: New to game programming

Post by ChrissyJ91 »

Welcome to the forums and your english was fine :) no need to apologise ;). You will want to download an IDE (presuming you haven't already downloaded one). There are quite a few free IDEs such as Code::Blocks (http://www.codeblocks.org/) and Visual C++ Express Edition (http://www.microsoft.com/express/Windows/). The internet is full of resources to help you learn such as antiRTFM's videos on youtube (http://www.youtube.com/user/antiRTFM) and this forum is also full of links to resources, topics where peoples problems have been discussed and people who can aid you with problems you may face. I can't really name any books as I haven't properly worked through them yet although I'm sure others on this site can. I hope I have been able to help you in some way :) and good luck ;).
Avishaiozeri
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 85
Joined: Wed Mar 17, 2010 4:32 pm

Re: New to game programming

Post by Avishaiozeri »

Thanks, you're very helpful, i'll try the links :) . but what is IDE? A compiler like dev c++?

edited: Wow! i'v watched (http://www.youtube.com/user/antiRTFM) and its great! thank you! i'll try learning without books :lol:
Last edited by Avishaiozeri on Wed Mar 17, 2010 5:51 pm, edited 3 times in total.
User avatar
GroundUpEngine
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 835
Joined: Sun Nov 08, 2009 2:01 pm
Current Project: mixture
Favorite Gaming Platforms: PC
Programming Language of Choice: C++
Location: UK

Re: New to game programming

Post by GroundUpEngine »

Yo ;)
Check out my post aswell, it has loads of useful links for IDE's and Tutorials http://thechaosrift.com/viewtopic.php?f ... 999#p53649
Avishaiozeri
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 85
Joined: Wed Mar 17, 2010 4:32 pm

Re: New to game programming

Post by Avishaiozeri »

Thanks man :) but what IDE means?
I'v read your topic, very helpful, thanks.
User avatar
GroundUpEngine
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 835
Joined: Sun Nov 08, 2009 2:01 pm
Current Project: mixture
Favorite Gaming Platforms: PC
Programming Language of Choice: C++
Location: UK

Re: New to game programming

Post by GroundUpEngine »

IDE is an Integrated Development Environment, e.g. Visual Studio, Dev-CPP, Code::Blocks, etc.. ;)
wiki wrote:A software application that provides comprehensive facilities to computer programmers for software development. An IDE normally consists of:

~a source code editor
~a compiler and/or an interpreter
~build automation tools
~a debugger
Avishaiozeri
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 85
Joined: Wed Mar 17, 2010 4:32 pm

Re: New to game programming

Post by Avishaiozeri »

I see, so it compiles the file too?
edited : I'v just red the things you brought from wiki...

So what i need to do first is to learn c++ and practice, then try some 2d games? what do you mean libraries in your topic? like a file you add to your program with an include command? thats how graphic development works? by using libraries like opengl? okay. so i'll start learning now! :)
thanks for all the helpers and the help!
User avatar
MrDeathNote
ES Beta Backer
ES Beta Backer
Posts: 594
Joined: Sun Oct 11, 2009 9:57 am
Current Project: cocos2d-x project
Favorite Gaming Platforms: SNES, Sega Megadrive, XBox 360
Programming Language of Choice: C/++
Location: Belfast, Ireland
Contact:

Re: New to game programming

Post by MrDeathNote »

Avishaiozeri wrote:I see, so it compiles the file too?
edited : I'v just red the things you brought from wiki...

So what i need to do first is to learn c++ and practice, then try some 2d games? what do you mean libraries in your topic? like a file you add to your program with an include command? thats how graphic development works? by using libraries like opengl? okay. so i'll start learning now! :)
thanks for all the helpers and the help!
I think your getting the idea. Your right, learn c++ first then make 2d games. Libraries are used to handle input, sound and graphics for games. They are set up in different ways but you do include them in your project. SDL is a great library to start off with because its simple to use and it handles input, sound and graphics. OpenGL is a bit more hard core, it's a fair bit harder to learn and use than SDL but it's also a lot more powerful. OpenGL is just a graphics library it does not support input or sound but you can use it with SDL so that you can use OpenGL's rendering and SDL for sound/input. But make sure your comfortable with c++ before going onto games, it will give you a good base and allow you to focus completely on learning a graphics API.
http://www.youtube.com/user/MrDeathNote1988

Image
Image

"C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup
Avishaiozeri
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 85
Joined: Wed Mar 17, 2010 4:32 pm

Re: New to game programming

Post by Avishaiozeri »

Thanks. I'll start learning it. this "libraries" like opengl, does game companys use them too?
User avatar
MrDeathNote
ES Beta Backer
ES Beta Backer
Posts: 594
Joined: Sun Oct 11, 2009 9:57 am
Current Project: cocos2d-x project
Favorite Gaming Platforms: SNES, Sega Megadrive, XBox 360
Programming Language of Choice: C/++
Location: Belfast, Ireland
Contact:

Re: New to game programming

Post by MrDeathNote »

Ofcourse man, OpenGL is widely used in industry. You've probably heard of directX, thats a library aswell. Check out some of the games made OpenGL:
http://en.wikipedia.org/wiki/List_of_OpenGL_programs
http://www.youtube.com/user/MrDeathNote1988

Image
Image

"C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup
Avishaiozeri
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 85
Joined: Wed Mar 17, 2010 4:32 pm

Re: New to game programming

Post by Avishaiozeri »

Wow :shock: ! and i thought the companys use some unknown alien Languages!
User avatar
MrDeathNote
ES Beta Backer
ES Beta Backer
Posts: 594
Joined: Sun Oct 11, 2009 9:57 am
Current Project: cocos2d-x project
Favorite Gaming Platforms: SNES, Sega Megadrive, XBox 360
Programming Language of Choice: C/++
Location: Belfast, Ireland
Contact:

Re: New to game programming

Post by MrDeathNote »

Avishaiozeri wrote:Wow :shock: ! and i thought the companys use some unknown alien Languages!
Lol no, the industry standard for game development is c++. Pretty much every company will ask for applicants with great c++ skills.
http://www.youtube.com/user/MrDeathNote1988

Image
Image

"C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup
User avatar
GroundUpEngine
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 835
Joined: Sun Nov 08, 2009 2:01 pm
Current Project: mixture
Favorite Gaming Platforms: PC
Programming Language of Choice: C++
Location: UK

Re: New to game programming

Post by GroundUpEngine »

MrDeathNote wrote:
Avishaiozeri wrote:Wow :shock: ! and i thought the companys use some unknown alien Languages!
Lol no, the industry standard for game development is c++. Pretty much every company will ask for applicants with great c++ skills.
/signed
Avishaiozeri
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 85
Joined: Wed Mar 17, 2010 4:32 pm

1b Re: New to game programming2e

Post by Avishaiozeri »

So i see that learning c++ has great value... i'll get on it now.

And by the way, i wanted to ask a question. I'v just started learning, and i saw the use for cin and cout. they're not keywords, so i guess their coming from a library (maybe iostream?) if i'm right, how can you print letters in c++ on the screen? do you have to use this library? or is it not a library at all?
I hope it is'nt, 'cause otherwise c++ is harder and more complicated then i thought, if even for text you need libraries full of code. correct me if i'm wrong.
User avatar
MrDeathNote
ES Beta Backer
ES Beta Backer
Posts: 594
Joined: Sun Oct 11, 2009 9:57 am
Current Project: cocos2d-x project
Favorite Gaming Platforms: SNES, Sega Megadrive, XBox 360
Programming Language of Choice: C/++
Location: Belfast, Ireland
Contact:

Re: 1b Re: New to game programming2e

Post by MrDeathNote »

Avishaiozeri wrote:So i see that learning c++ has great value... i'll get on it now.

And by the way, i wanted to ask a question. I'v just started learning, and i saw the use for cin and cout. they're not keywords, so i guess their coming from a library (maybe iostream?) if i'm right, how can you print letters in c++ on the screen? do you have to use this library? or is it not a library at all?
I hope it is'nt, 'cause otherwise c++ is harder and more complicated then i thought, if even for text you need libraries full of code. correct me if i'm wrong.
iostream is part of the STL(standard template library) it comes built into c++, its basically a set of useful functions. To print to the screen you need to include iostream and use this code:

Code: Select all

std::cout << "Hello World!" << std::endl;
cin is used to get input from the user, it can be used like this:

Code: Select all

std::cin >> myVariable;
http://www.youtube.com/user/MrDeathNote1988

Image
Image

"C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup
Post Reply