Newsgroups: comp.sys.sinclair
From: stuart@century.demon.co.uk (Stuart Knight)
Path: ulke.hiMolde.no!trane.uninett.no!sunic!news.funet.fi!news.eunet.fi!news.spb.su!KremlSun!satisfy.kiae.su!news.techno.ru!demos!uunet!in1.uu.net!pipex!peernews.demon.co.uk!century.demon.co.uk!stuart
Subject: Re: 3D Isometric games
References: <1995Feb15.104856.11083@inca.comlab.ox.ac.uk> <D41t13.DHD@cix.compulink.co.uk> <D4229M.6o1@info.bris.ac.uk>
Reply-To: stuart@century.demon.co.uk
X-Newsreader: Demon Internet Simple News v1.29
Lines: 65
X-Posting-Host: century.demon.co.uk
Date: Thu, 16 Feb 1995 22:36:13 +0000
Message-ID: <792974173snz@century.demon.co.uk>
Sender: usenet@demon.co.uk

I have searched thru some old paperwork of notes I made back in my original
speccy days, when I hacked about at Knightlore.  I have tried to rewrite the 
following in plain english from my notes, and memory (It's failing in my
twilight years!!)   

Warning: This may need reading a few times to make any real sense.


Room Layout in Knightlore

Data for the various rooms is stored from address 25176 onwards.  Each room's 
data is of varying length and begins with the room description, followed by the
room number, codes that control exits, colours, size of screen etc. and finally
a code of 255, which signifies the end of 1 room, the next byte being the first
of the next room.
To appreciate the layout of each room, imagine a plan of each room which is
split into 64 numbered squares, starting with square 0 being centre-left of the
screen.  They continue from 0 to 7 down the lower left hand of the screen, 7
being centre-bottom. The next row runs parallel to this numbered 8 to 15. The
final row goes from centre-top to centre-right, numbered 56 to 63.  On top of 
this there are 3 more levels, each square on these is numbered by adding 64 to
the square below it. Thus the four levels at the centre-right location are
numbered 63, 127, 191 and 255(end of room flag).

(Real tricky to explain/understand coming up!!)

Each object in a room has a unique number:

  0 - Solid Block			  8 - Non moving flame
 16 - Bouncing Ball			 24 - Jungle Block
 32 - Gargoyle				 40 - Impaler
 48 - Chest				 56 - Table
 64 - Knight (Moving back and forth)	 72 - Ghost
 80 - Flame				 88 - Block (Five levels up from posn.)
 96 - Bouncing Ball (1 level up fm pos.)104 - Knight (Moving in "circle")
112 - Block (Sliding up and down)   	120 - Block (Sliding side to side)
128 - Block (Moves when stepped on)	136 - Impaler (5 levels up from posn.)
144 - "Conkers" (spiked balls)		152 - Conkers (fall when object taken) 
160 - Flame (Moving back and forth)	168 - Block (Collapses when stepped on)
176 - Exploding Block			184 - Roving Ball
192 -					200 - Magic Spell
208 - Portcullis (Right to left)	216 - Portcullis (Left to right)
224 - Bouncing Ball

(There may be others that I never discovered....)

To each object number in a room, 1 is added for each additional one(*), the
number of the square it locates then follows.

Example

The sequence 59, 19, 20, 35, 36  means:

There are four tables, 56 (table code) + 3 (for 3 additional tables), and they
are in locations 19, 20, 35 and 36.

(*) - If there are more than 8 of one particular object, more than 1 definition
would be required (adding more than 7 to an object number would encroach on the
next object in above list..)

-- 
Stuart Knight     *Preferred* E-Mail: Stuart@mirkwood.win-uk.net
--------------------------------------------------------------------------------
"If music be the food of love, why don't rabbits play banjos ?"
                                                          A. Porter.
