DANGER UXB
by Mark Harmsworth
from ZX Computing Feb/Mar.1984

You'll need a lot of energy to keep up with
Roger Harmsworth and his program for the ZX81.

[I've no idea why this is called "Danger UXB" (UneXploded Bomb)]
[as there are no bombs in it whatsoever.                   JimG]

[The Feb/Mar issue incorrectly credited Roger Harmsworth as the]
[author of this game (corrected in Apr/May issue, p.11).   JimG]


When you first run this program you will be presented with
some brief instructions on how to play the game.

Briefly, however, you find yourself on the planet Zaphod,
and your unenviable task is to search for a number of power
cells required by Earth which is suffering from acute energy
starvation. Once on the planet Zaphod, you make your way to
the centre of the planet which is made of a room full of
long corridors.


Power crazy

Once in the room you will see the power cells you are to
collect - they are made up of inverse 'O' characters.
Unfortunately for you, there is a monster, called Tri Hex,
which protects the caverns and will chase you around the
corridors trying to stop you in your quest. Tri Hex is
represented by a '' character.

Once you have collected all the power cells, you must make
your way to 'HOME' which is represented in the corridors by
an inverse 'H' character. However, on your way round the
corridors, you may find your way boxed in by Tri Hex or you
may accidentally press the wrong button and find yourself
falling down a chute (which are represented by '[inverse
space]' characters. Should this happen, you will find
yourself on one of the lower levels and you must find an
elevator to get yourself up to the first level. An elevator
is represented by an inverse 'E' character.

There is also the possibility of being evaporated, in which
case you will suddenly find yourself on another planet
called DX4. In this eventuality, you must find a shuttle,
represented by an inverse 'S' character, and get yourself
back to Zaphod and continue your search for power cells.

There is also a limit of time for you to get your power
cells back to 'HOME' so don't waste any time! Movement
around the corridors in the centre of Zaphod is made via the
cursor keys on the ZX81.


Line by line

Here follows a breakdown of the program, should you wish to
examine it more closely:

Lines 100-490   Provide instructions for the game.
Lines 492-625   Set up the screen display.
Lines 630-780   Move the monster, Tri Hex, and your own
                character, represented by an '*', while checking
                which square you have moved into each time you move.
Lines 1000-1010 The 'death' routine.
Lines 1020-1170 Ask you if you would like to play another game.
Lines 2000-2070 The routine controlling what happens if you
                reach 'HOME'.
Lines 3000-3020 The routine controlling what happens if the door of
                'HOME' shuts on you before you have reached it.
Lines 4000-4130 Provide the inverse screen.
Lines 4140-4239 Provide information on the evaporator.
Lines 4240-4310 The routine controlling what happens if you
                reach the shuttle on the planet DX4.
Lines 7000-7180 The routine controlling what happens if you fall
                down a chute on the first level of the corridors.
Lines 8000-8100 The routine controlling what happens if you
                manage to find an elevator on the lower level.
Lines 9000-9040 Draw up another map showing where you are.
Lines 9800-9860 The routine controlling what happens if you
                fall down too many chutes.
Lines 9900-9940 The routine controlling what happens if you
                are evaporated too many times.
Lines 9950-9970 The SAVE routine.


--
Another Fine Product transcribed by:
Jim Grimwood (jimg@globalnet.co.uk), Weardale, England
--
