This is a game of "Defend The Cities From The Falling Missiles", in the
style of the old arcade game.

It is a quick hack, and has only really been tested on PMAX machines;
It runs on SUNs and MIPS but does not increase in speed enough 
to make the game really interesting. I suspect the problem is with the
usleep() routine being used ... if your system has usleep() your may wish
to try it instead (just remove its reference from the Imakefile).

To compile it: just change the define in the Imakefile for the location
of the high score file, do a xmkmf, and compile away. The program does
not require any X extensions, just Xlib and the math lib.

This actual program was written Sandy Walsh,
with special help from John Rochester.

John did the high score stuff, the THE END routine, and greatly 
improved the look and feel of the game by modifing the bitmaps, 
enhancing the bonus points screen, adding the command line options, 
and numerous other sanity saving features. (Thanx John)

The game was only written for fun, and I don't plan on supporting it
for other platforms; but revisions may come out in the future (!?).

I, in no way, take responsability for the use of this program, or any
damages which may occur from it's use.

COMMAND LINE SWITCHES
----------------------
-l <level>       Start game at level <level>
-c               give a next round start countdown (effective from
				 level 30 onwards)
-s               display the high scores
-k               disable the mouse buttons (useful when using keyboard)

THE RULES (very quickly)
-----------------------

You have three bases, which can each shoot 10 surface-to-air missiles (STA's).
You must defend these bases, as well as 6 cities located between your
bases.

Missiles decend from the top of the screen, which are targeted at both your
cities and bases.

Missiles may be Multiple Impact Re-entry Vechicles (MIRVs) which may split
up to target other bases or cities. MIRVs may split up, at most, twice.

Press the mouse button corresponding to the desired base you wish to launch
your STA from; left button=left base, middle=middle base, right=right base.
An STA will launch from that base to the mouse cursor location, at
which point it will detonate.
The keys "zxc" and "123" may also be used to control the bases.

You may fire as many STAs as available. 

To kill a missile, the explosion must engulf the front of the decending 
missile.

If you have no more STAs available, or the base has been hit, and you
attempt to shoot from the base, a beep will be sound.

After an attack wave, you receive bonus points for remaining STAs and
cities you have defended against attack.

Currently, no bonus cities are awarded.

After level 5, a bomber plane may appear which may drop more missiles. This
plane may also be stopped by using your STAs.

At level 10 and onwards, Smart Bombs appear, which also decend from the 
top of the screen and target either your cities or bases. These bombs
attempt to avoid contact with STA explosions by moving around them.

A maximum of 5 smart bombs may appear in a given wave.

Play continues until all your cities have been hit. 

Bases which have been hit, will return at the start of the following wave.

The high score file records the top 3 scores of a given player in the
top 15 scores, as well as the players personal top 3 scores.

You can stop the game at any time by pressing a key on the keyboard.

You can pause the game during the bonus point screen by pressing "p".
(Press it again to un-pause)

During play, the game grabs the mouse cursor, and does not allow it to
leave the constraints of the game window. This is released during the
pause mode, mentioned above.

SCORING
-------------------------------------
Intercepted Missiles 		100 pts
Un-used STAs				300 pts
Saved Cities				500 pts
Intercepted Bomber planes	700 pts
Intercepted Smart Bombs		1000 pts

Good luck and have fun

---
Sandy Walsh - Memorial University of Newfoundland - CS Dept 

I've been carving you, to see what form you take. 
You were hiding in ivory, I just wanted to free your shape.
	- The Tragically Hip 	(sandy@garfield.cs.mun.ca)

