To install, download and extract the latest version of hag.
The "Source" folder contains the uncompiled source code for hag and the Hag Theme Compiler.
The "Compiled" folder contains the hag unit compiled for Pure2D, Cobra2D and Cobra3D. You should put these files:
hagP2D.clm hagC2D.clm hagC3D.clm hagP2D.o hagC2D.o hagC3D.o
Into your Cobra\bin\libs\ folder, usually located at:
You can optionally also copy the following file:
Into your Cobra\bin\ folder, usually located at:
To compile the Hag Theme Compiler (optional) you will need to download the latest version of Basilisk.
The "hag" folder must be copied into the same directory as any Cobra project that uses hag. You can move and rename this folder as the procedure HagBaseDir(dir: String) tells hag where to look for it - see Packaging.
The following barebones program shows how to include the unit:
// SetUp Your Controls...
While Not KeyDown(VK_ESCAPE)
// Update Your Controls...
You can also contact me directly - I make an effort to reply to every e-mail.