Im just posting a tip that everyone should know.When i make games i usually start out with a storyboard on a piece of paper for level design so i dont get confused making a game saying"what the hell am i doing?!"
That's my tip.So post your tips here if you want or comment about this post.
Todays computer tip is: Get a life! There is nothing worse then being old and lonely except for people online! GO OUT SIDE! well... there is this thing called 'the world' - no it's not from some anime that is a peseudo mmorpg... its REAL! SO ENJOY LIFE!
Or, do what everyone else does and just do nothing really.....
Always split your events into groups. Especially if you have either; RPG, Fighting, Sim. Games, because a lot of stuff can suddenly become confusing if you have 1000 lines of code.
Have meaningful names like; "Player 1 Movement"
"Enemies" and "Powerups" etc.
1)When making complex games(like RPGs) always make the designs first.
2)draw sprites on paper first and then draw it on the computer. With a paper-drawn reference, it's much easier to make graphics.
Simen's tip: Don't be such a lazy bastard, like me. Seriously. I've started, like, umh... a lot of games, and I never finish them. Mostly because of my extreme lazyness. Or maybe because they suck. Probably.
And ideas for games and stuff usually suddenly pops in my head. You can't force them in there. Well, I can't. If i sit down and like: "Ideas, Come onto me!" they don't. Take a walk or something. That usually helps. I often get ideas when I'm lying in bed, and trying to sleep. And then I finally fall asleep, and when I wake up, I've forgot my ideas.
The content above makes absolutely no sense. But I guess you've already figured that out.
if (massive_calculation() == 2) DoThis();
else if (massive_calculation() == 3) DoThat();
else if (massive_calculation() == 4) DoOther();
Presuming massive_calculation() takes a while to complete; it is called three times, so it takes three whiles to complete. If you set a variable to massive_calculation, also presuming its result hasn't changed, it is only called once, and you can compare the variable to 2, 3 or 4, or something.
Shen: If you put all your code inside a while loop, you can't move it. If you put it outside a while loop and call it, you can call the function from outside the while loop, another source file, or an object.