Personal Computer News


Caves Of Treasure

 
Author: D. Barke
Published in Personal Computer News #046

Caves Of Treasure

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.

D. Barke

This article was converted to a web page from the following pages of Personal Computer News #046.

Personal Computer News #046 scan of page 65

Page 65

Personal Computer News #046 scan of page 66

Page 66

Personal Computer News #046 scan of page 68

Page 68