Titie:
Caves Of Treasure
Machine:
ZX81 + 16K
Application:
Game
Language:
ZX Basic
Author:
D. Barke
Heroes and heroines are normally only found in books and stories that happen to other people. This program, from D. Barke of Harlow in Essex, drags you into an adventure fantasy world the likes of which ZX81 has rarely seen. You move around the caves, using the cursor keys, through a network of 21 caverns filled with monsters and deadly lungoloids. Your only protection is a bow and some arrows. There are fired by pressing F and a direction to aim. New arrows are available at the entrance to the caves, at a cost to your treasure. In cave 21 there is a hoard of treasure guarded by a growing serpent which will attempt to seal off the exits. Shooting holes in it is only a temporary solution, unless you shoot at something else, in which case the serpent will go after whatever you shot at. A monster is worth five and treasure ten. Arrows cost 4 and reincarnation costs 50.
Program Notes
The game is written in sections shown by the REM inverse comments. The program, from lines 5 to 95 set up the variables, arrays and strings used in the rest of the program. Lines 150 to 224 draw the cave onto the screen using bunches of blocks. Note that the top and bottom walls are contained in C$. Lastly this section puts some treasure "*" into the cave.