Originally posted by Heffalump
Originally posted by Narz
Ha ha ha.
Oh yes there are pointers all right.
Really i can't believe the rest of you let such an opportunity slip. As a java programmer i couldn't.
Argh! Too many images (I didn't have any!) And I missed TF in chat too.
Anyway, I'll make it short:
There's stuff such as while loops, if/else statements, etc...
arrays: a group of varibles of the same type.
int numbers[15];
In C++, 0 is usually the start of arrays. (These can be tricky)
constant varibles - varibles that can't be changed (can be global).
global - Every function knows about this varible (bad programming practice)
static varibles - semi-global varibles. These can be in a function, and their value won't change when you leave that function.
Local varible - A varible that only that function knows.
Pass By Value - A varible that's passed to another function. Any changes in the 2nd function are forgetten when you leave that function.
Pass By Reference - Like PBV, but any changes in the 2nd function affect the varible in the 1st.
Some do's and don't for gaming.
1. Never,
NEVER just jump into programming a game. Games can get quite complex, and you'll most likely end up with speghetti code. I made that mistake when I was a kid and a teen. Think of what you want (analyze it). You might find that you need several engines for the game. Take 1 at a time, and split it into functions. Coding and varibles should be the last thing you do.
2. "70% of programming is psuedo-code". But, only 5-10% of Software Development is programming. Why? There's 7 major steps. To make it short, it's seeing what you want and if you can do it. Then see how each function will behave, design it, code it, then test it.