Programming Page

DJGPP Forever!!

Click here to return to main page

 

So, you wanna learn how to program? There are lots of different ways, and on this section of my website I will describe basics of programming in C. Eventually I will get to creating graphics routines, and setting a whole bunch of video modes. First though, before you start programming anything, you need a compiler. I use DJGPP, and that is what all the tutorials on this page will be using, so I suggest you get it before going any further (if you haven't already got it). It's about a 10 meg download from delorie.com, but it's separated up into smaller ZIP files, so you don't have to download it all at once.

Once you've finished downloading the ZIP files, you need to put them all in one DJGPP folder. I suggest creating a folder on your main hard drive called djgpp. Unzip all the files, then do this (important): go into your main hard drive, and there should be a file called autoexec.bat. Right click on it, then go to edit. add in these lines to the end of the file:

 

set DJGPP=C:\DJGPP\DJGPP.ENV

set PATH=C:\DJGPP\BIN;%PATH%

 

this will help DJGPP to locate its files. When you finish this, restart your computer and DJGPP will have been installed!

Great, now once you've finished installing DJGPP, you can start programming in it! where do you start? Well, that's where books and the internet come in! Follow along with my tutorials to unravel some mysteries of Game Programming in C!

 

TutorialDescription
Beginning with CIntioduction to the fundamentals of the C language.
Basic C functionsLearn how to open files, work with strings and get key presses!
Starting with Graphics How do you set the screen mode and draw stuff? Here's how!
Different Graphic MethodsWant to change the palette or blit sprites? Learn how to load PCX and BMP files!
1