The Ultimate Game Programming Tutorial
FIRST, IF YOU HAVE GOTTEN THIS FROM SOMEWHERE,
IT REALLY DOESNT MATTER WHERE, VISIT THE BEST GAME
The Game Programming MegaSite:
This documents purpose is to teach Game Programming. Step by Step, and little
by little this document will teach you everything you need to know in order to program
games. This document contains my tips, code, and advice as well as information. What
you need is knowledge of programming and a C compiler, hopefully one of the more well
known compilers, this would include Borland, Microsoft, Watcom. If you are using
another compiler, such as DJGPP, this code may or may not work, I provide a DJGPP
specific section at the end, which covers all these aspects as well, but only for users of
I use DJGPP because I believe it is by far the best available, but for your
purposes the others will do fine. And now begins your journey into the realm of Game
Appreciation and Understanding Is The First Step:
Did you ever look at Pacman or Space Invaders, or for that matter any "bad"
game, and say, "What a corny game! corny graphics, and NO SOUND!!!". If you have
done this, ask yourself this question, Can you make that game? Those games take thought
knowledge and a lot of hard work. You have to appreciate every game, whether you feel
it's good or bad. Every agem requires an amazing amount of EFFORT to complete and
each should be looked at with amazement at what we can do. True, some games are
better than others and some should have never been made, but understand that even the
bad games are good.
The Milestones In A Games Life:
A game runs sequentially, this happens this time, this happens after that.
is structured in such a way that it is easy to understand, here is the “usual” order of a
Allocation Of Required Memory
Open And Load Files
Load Images, Sounds, Movies, Music
Set Up Player Variables (score, power, speed)
Basically, this section’s purpose is to get the game ready to play.
Sometimes it is important to keep the initialization separated into many