AMOS TOME Series IV Manual  Index Prev Page Next Page 57

Parameter wise, by Map is the same as Map Do, except that it has an extra Size parameter, which is the size of the tiles to be used. So using Size=1 would mean that Tiny Map would display a very small map using 1x1 pixel tiles from the Tiny tile bank.

Tiny Bank n
This command tells TOME where the tiles for the Tiny Map command are stored. Normally this will be bank 10, so that if you are using Ctext (or Ctext 2) you can define the Tiny Tiles as the first 16 icons in your font bank. A Tiny Tile bank is very simple, you just need 16 icons, set to the size that you intend to use Tiny Map with. Each tile will represent 16 Tile Values i.e Tile 0 is values 0-15, Tile 1 is Values 16-31 etc.

Map Fall n
The Map fall command will scan the entire map, using the second tile value list. Depending upon the valuer each tile on the Map and the surrounding tiles, Map Fall will make the tiles fall downwards, replacing them with tile number n. Surprisingly enough, this command is very useful when you are writing Boulder Dash and Repton style games !

The following values are used in the second tile list to show whether or not a tile will fall :-

0: Tile is not solid, falling tiles will go right through !
1: Tile is solid, will not fall, and tiles will not roll off it.
2: Tile is solid, will not fall, but tiles will roll off it.
3: Tile is solid, falls but tiles will not roll off it.
4: Tile is solid, falls and tiles will roll off it.

Map Swap Tile t1,t2
This command will search the map for all occurrences of the tiles t1 and t2 and swap them over. Great if you want water to ripple, simply have 2 different tiles and Tile Swap them every frame or so.Because this command scans the entire map for occurrences of the tiles, it is not very practical for large maps, unless you don't need them to update very rapidly.

The Tiles changed by Map Swap Tile are passed to the Map Update system, so as long as you have enough updates available, they will be automatically updated on the screen, as if you had used Map Plot.