AMOS TOME Series IV Manual Index | 69 |
Just because TOME comes with an excellent extension for AMOS doesn't mean that you have to use it for only AMOS software. In fact TOME has been used to create maps for all sorts of programs !
Just for those of you who will need to know, here are the formats of the various TOME data files and banks, so that you can incorporate them into your routines. (A tip for the chap doing the rather large map on the Cray II, try creating it as several 32768x32768 maps and using the Cray's file handler to fix them together).
Most of the data formats are very simple, this means that they work faster and are more memory efficient.
This format is very simple, first we have 2 words for the Width and Height of the map (MapX.w and MapY.w), then we have the data for the map itself, starting at the top left of the map, and working along the top row, 1 byte for each tile, then going to the next row and so on. e.g
MapX.w 5 MapY.w 3 data 0 1 2 3 4 5 6 7 8 9 A B C D E
These banks are 256 bytes per value list (from 1-8), and are very simply blocks of 256 bytes,1 byte per tile number with each list following the previous.
e.g Listl 256 bytes List2 256 bytes etc
The brik bank is quite complex by TOME's standards ! First we have the number of bras in the bank as a word. Briks.W. Then we have a lists of Longwords, each of which is an offset to the data area of a particular brik. e.g.
BriklOff.L Brik2Off.L etc...