Newsgroups: comp.sys.sinclair
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!news.sprintlink.net!pipex!uknet!comlab.ox.ac.uk!imc
From: imc@comlab.ox.ac.uk (Ian Collier)
Subject: Re: 3D Isometric games. Maps, etcetera!
Message-ID: <6085.imc@uk.ac.ox.prg>
X-Local-Date: Wednesday, 15th February 1995 at 2:29pm GMT
Originator: imc@msc6.comlab
Organization: Oxford University Computing Laboratory
References: <D3zM34.90x@info.bris.ac.uk> <D405IK.FoH@cix.compulink.co.uk>
Date: Wed, 15 Feb 1995 14:30:38 GMT
Lines: 23

In article <D405IK.FoH@cix.compulink.co.uk>, cmeeks@cix.compulink.co.uk ("Colin Meeks") wrote:
>IIRC, Jet Set Willy stored it's maps in a similar way to Manic Miner, but 
>used two bytes per screen location.  I may have a poke around and see if 
>I can shed any more light, if I get enough time.

Each character square on the screen takes two bits.  This gives a total
of 128 bytes for the screen design.  The two bits signify one of the four
things: space, platform, wall or dangerous object (I think).  The designs
and colours of these graphics plus one for the collectable objects take up
45 bytes.  The name of the room takes 32 bytes.  There is also one optional
staircase, one optional conveyor belt, the positions of the collectable
objects, the list of baddies and the list of adjacent locations to worry
about.  I have a program that can print a map...  somewhere.

In the 256 bytes that specify each room, there are at least two spare
bytes.  I used these to store a safe starting position for Willy in
order to fix the "infinite death" problem.  My hacked version of JSW
is in ftp://ftp.nvg.unit.no/pub/spectrum/snaps/games/special-hacks/ .

Ian Collier - Departmental Lecturer (and perpetual postgrad student) -
imc@comlab.ox.ac.uk - Oxford University Computing Laboratory, Wolfson
Building, Parks Road, Oxford OX1 3QD - WWW Home Page (including Spectrum
section): http://www.comlab.ox.ac.uk/oucl/users/ian.collier/index.html
