PDA

View Full Version : Where to begin~~~the basics


Piggy-Bank
07-06-2006, 03:00 AM
lol, well, i've decided to start learning programming...since my dream is to creat something... on this topic: http://www.onrpg.com/boards/general/8602-virtual-gaming-world/

So, i've always been wondering how to begin creating a game...i've looked at the C++ sticky, and i think thats prety cool...and since im only 13, i think it'll be great to get a head start...So, it'll be nice if someone could tell me how to begin..so i go straight into C++, what should i download...and basically, give me an intro on gaming programming ^_^

i mean, i dont' really know what i should do...and what c++ has to do with whatever...and well, i have a LOT of questions about programming...but i'd liek to know the basics first, so, i hope that someone could help me ^_^

thanks~

ncyphe
07-06-2006, 06:15 PM
C++ is the core of most programing. IT is a language designed, like several others, to increase the potential of what can be done on the computer. C++ is a dev language, not just for game, but it is an excelent choice to start learning a language at your age, I only wish I did.

I'd suggest taking a short trip over to gamedev.net for some help with understanding how to use c++ in game dev. Search the erticle or jump the forums, I'm sure you'll find something useful.

www.gamedev.net (http://www.gamedev.net)

Beazel
07-06-2006, 06:28 PM
Learning C/C++ without any prior programming language can be very difficult, I suggest learning a simpler language, like BASIC, just so you can get a grasp on how programming works. :p

Or; if you think you can take on C++ already, check out this link: http://www.onrpg.com/boards/game-development/1215-getting-started-c/

Piggy-Bank
07-06-2006, 07:24 PM
oh yea...i say that thread...but, a question is, whats is the program anyway?...like, whats the program do when i download it? O_O

Beazel
07-06-2006, 07:50 PM
It's an IDE (http://en.wikipedia.org/wiki/Integrated_development_environment) and compiler (http://en.wikipedia.org/wiki/Compiler).

Piggy-Bank
07-06-2006, 10:25 PM
oh...so, how do i start making a game?

ncyphe
07-07-2006, 04:29 AM
In truth, here's my simple list (only one game college comercial got it right, but still don't trust them, they all lie)

1) Brainstorm and jot down the ideas for your game. I spend hours just walking about the room coming up with ideas and determining if I can pull off the code.
2) Figure out whether you want your gam t be 2d or 3d. I've heard that the coding on each cn be pretty much the same, but the easy side wanes to 2d.
3) Gather your games resources. You'll need a graphics engine (wheter 2d or 3d), a game engine, and a library of graphic and sound resources. (many cases, a person will opt out of coding a graphics engine and get one ready made, but you will have to program the game engine yourself. Exactly as it says, that is the game.)
4) Find a community that provides articles and help for coding games in the language you have chosen.
5 and up) pretty much at this point, you on your own determining what you'll do next.

Some others may have a different way about going through things.

Now if your asking for a tutorial, you'll need to scour google and I think there is one somwhere on these forums.

Note to webmaster: When the new site is finished, can we get a section dedicated to user submited tutorials/articles.

Piggy-Bank
07-07-2006, 07:41 PM
oh....thanks..

um, so, i think im goign to try C++, but i've heard its too hard for someone my age...could anyone provide me with something a little bit easier? not that im not going to try C++ ^_^

JudgementXD
07-07-2006, 11:01 PM
Meh I actually think that u should try Visual Basic just as Beazel said. I'm actually new at programming myself but I've read several posts so from what I understand Visual Basic is for beginners. Although it is hard to find a copy as Microsoft doesn't distribute it anymore. After u grasp the basics of that language ti shouldn't be 2 hard to start C++ or C# (your choice) Most ppl tend to learn C++ but I opted for C# but they r quite similar. Anyways if u want tutorials u'll rarely find any decent ones on the internet so I say go buy a book. U can check out the books on Amazon.com- search Game dev and u should get quite a list of books. Hope I helped.

Piggy-Bank
07-07-2006, 11:08 PM
Visual basics ehh? ill think about that..lol, im one of those peopel that just want to start..and dont' want to wait to learn more about programming >_<...so, thats a big NO NO lol

anyone got a site for me to learn visual basics?

Cj Shadows
07-11-2006, 07:01 AM
oh....thanks..

um, so, i think im goign to try C++, but i've heard its too hard for someone my age...could anyone provide me with something a little bit easier? not that im not going to try C++ ^_^
Hey im 13 also and I am programming with C++. And I just started programming like this month but i know alot. Lets say this do what I did get a book or two i suggest beggining C++ and Beggining game programming with C++. Just learn the basics, start with some text editors (mini note pads) then create some interactive stuff and move to games. HMMMM well Ill say im some how very good at computers and programming but....im not tht good in school or math.... And i think starting at 13 is a huge head start;)
Keep going at it and learn the basics. And I suggest not getting Visual Basic...I hate it. And I suggest before going into your fully own 3D games from scratch do conten for O.S. Games and do O.S. Mods. I do stuff for Eternal-Lands.
HEre is the site to get Dev-C++(unless you want to buy a nice C++ compiler)
http://www.bloodshed.net/devcpp.html
Any questions or need my help then please PM me, email me, or add me on MSN!

Piggy-Bank
07-11-2006, 11:19 PM
well, acually, i've got a problem...i've gotten books, and they are all the the format :

//Piggy-Bank's test

#include <stdlib.h>
#include <iostream.h>

void main ()
{
cout << "compiler problem";
}

and it never compiles it...so, im kinda confuse on how to USE the bloodshed compiler...could anyone help me?

Cj Shadows
07-12-2006, 02:25 AM
well, acually, i've got a problem...i've gotten books, and they are all the the format :



and it never compiles it...so, im kinda confuse on how to USE the bloodshed compiler...could anyone help me?
Well i have the same problem. I use the same compiler and when I compile the program it says where the errors are "Cant run program" and there are no other errors and just says that. So yea I neeed help on that to, and no matter how many times i restart/reinstall that program it wont work.

Piggy-Bank
07-12-2006, 04:50 AM
well, with mine, i can't even RUN the ting -_-....think its the compiler? ino....because the books im using all use different things EX: /* or just plain old #include something -_-

Beazel
07-12-2006, 05:12 AM
Try this:

#include <iostream>
using namespace std;

int main()
{
cout << "This is a test?\n";
system("PAUSE");
}

This compiles and runs for Code::Blocks (http://www.codeblocks.org), should work for Dev-C++ as well.

Eriond
07-12-2006, 06:26 AM
well, acually, i've got a problem...i've gotten books, and they are all the the format :



and it never compiles it...so, im kinda confuse on how to USE the bloodshed compiler...could anyone help me?


It doens't work because the cout thing is declared in a namespace, you need to add

using namespace std; to the top of your file. (Below the includes) :)

Cj Shadows
07-12-2006, 05:07 PM
It doens't work because the cout thing is declared in a namespace, you need to add

using namespace std; to the top of your file. (Below the includes) :)
I did everything right even the helloworld program examples, and when I compile it in the compile tab it says "unable to run program file"
and there is no syntax or any other errors.

Heres wat it says in the compile log:
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\Makefile.win" all
Execution terminated
PLZ HELP!

Piggy-Bank
07-12-2006, 07:38 PM
yea...it works now, after i put in namespace std;,.....BUT, now the problem is that my book doesn't tell me to do that. lol, im reading DUmmies 101: C++ programming, published in 1996, so....has C++ improved? becuase int aht book, it just has void main () and other stuff O_O

ractoc
07-12-2006, 09:11 PM
Yes they added namespaces after 1996
which is the problem I have with todays C++
seeing that I haven't used it in a while...

Beazel
07-12-2006, 09:27 PM
That book's a bit old. :rolleyes:

I'd recommend reading these tutorials: http://www.cprogramming.com/tutorial.html

Piggy-Bank
07-12-2006, 10:52 PM
>_<....lol, i got it from the library -_-, library won't get anything newer T_T

but, i got another book that was in 2001, and it still doens't have namespace.....should i learn fromt hat, or get a book that is VERY new? the thing is i dont' like reading online tutorials >_< i think that books are easier >_>