Compiling Instructions for Tank:

Getting the SDK
-=-=-=-=-=-=-=-
If you do not have the SDK you can order it off Microsoft's
DirectX page. But your probably like me, and perpetually broke
so here are some alternative solutions:
        http://www.triax.com/ben/directx/dxsdk.html

You may already have some kind of DirectX packaged with your compiler.
I believe Visual C++ 6 comes with DirectX 5, and VC++5 comes with 3.0.
If you are having troubles finding the directx files, just download the SDK. 

Compiling under Visual C++ 5.0/6.0
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
First you need to create a project for this. You need to create a Win32
Application. DO NOT create a Win32 console Application!

File...New...Project Tab...Win32 Application...call it Tank

The add the files to the project

Project...Add to Project...Files...add Tank.cpp, Gpdumb1.cpp, Gpdumb1.h
                                       Tsound.cpp, tsound.h

Add the DirectDraw library so it will be linked when you build the project

Project...Settings...Link Tab...Add to the object library modules: ddraw.lib 
and winmm.lib (This second file is for sound)

Add the DirectX SDK directories to your include paths

Tools...Options...Directories...Add C:\dx5sdk\sdk\inc
Your DirectX include version may be different depending on the SDK you
downloaded. You may not even have to add it, depending on your version of
Visual C++. You may not have to do this if you are using Visual C++ 6.0

The Final Step

Hit F7 to build TANK.EXE and pray that it works.

If all goes well you should have a Tank executable. You will need to place
all of the BMP/WAV/MIDs from the game (http://www.loirak.com/tank/TANKDX.ZIP) in
the same directory as the EXE, then run and enjoy!

The Zip file for the source code which you probably already have is at:
http://www.loirak.com/tank/TANKSRC.ZIP

Compiling under BORLAND C++
-=-=-=-=-=-=-=-=-=-=-=-=-=-
+OPTIONS (TOP TAB) -> PROJECT
 ADD TO INCLUDE -> ;C:\DXSDK\SDK\BINC;
 ADD TO LIBRARY -> ;C:\DXSDK\SDK\BLIB;
 CLICK OK

+PROJECT (TOP TAB) -> NEW PROJECT
 NAME -> TANK.IDE
 PLATFORM -> WIN32
 ADVANCED -> CPP NODES (UNCHECK .RC AND .DEF)

+PROJECT (WINDOW) FOR TANK.IDE
 ADD NODES -> GPDUMB.CPP, GPDUMB.H, DDRAW.LIB, DDRAW.H, TSOUND.H, AND TSOUND.CPP
(BORLAND 4.52, OTHERS COMPILERS? CHECK)
 ADD NODES -> C:\BC45\LIB\CW32.LIB (WINMM.LIB?)

+PROJECT (TOP TAB)-> BUILD ALL 

MOVE TANK.EXE TO FOLDER WITH IMAGE AND SOUND FILES TO EXECUTE PROPERLY!

-=-=-=-=-=-=-=-=-=-=-=-=
Gotten Tank to compile under another system like Cygnus Win32GCC, etc. 
Let us know and we'll add the instructions here!

Questions or comments email programming@loirak.com     
 
 
