Glimmr Automap

version 2/101030 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Section: Description of tilesets

    A tileset is an object (of kind thing, to be precise) that defines the essential information needed for translating the list of numbers provided by the Automap extension into a grid of images. Declaring a tileset is simple:

        The Glimmr Automap Tileset is a tileset.

    A tileset has only a few parameters. The most important is the "translation table". The translation table relates an arbitrary number to a figure name:

        The Glimmr Automap Tileset is a tileset. The translation-table is the Table of Automap Tiles.

        Table of Automap Tiles
      Char  Tile  
      number  figure-name  
      2  Figure of north south path  
      1  Figure of east west path  
      35  Figure of ne sw path  
      36  Figure of nw se path  
      37  Figure of empty room center  
      90  Figure of diagonal cross  
      91  Figure of orthogonal cross   
      38  Figure of south wall  
      39  Figure of north wall  
      40  Figure of east wall  
      41  Figure of west wall  
      42  Figure of north exit  
      43  Figure of south exit  

    Another pair of properties describes the dimensions of the tiles. These should (but strictly need not) reflect the actual dimensions of the image files in the tileset. The dimension properties are "tile-width" and "tile-height":

        The tile-width of the Glimmr Automap Tileset is 25.
        The tile-height of the Glimmr Automap Tileset is 25.

    Automap tilesets are also required to have two additional parameters. The "zoom-level set" is a list of real numbers that describes the levels of zoom available; four entries in the list means that there are four zoom levels available. Zoom levels should increase from left to right in the listing. The "initial zoom level" tells us which zoom level to begin the game using, and is expressed as a number representing the appropriate entry of the zoom-level set.

        The zoom-level set of the Glimmr Automap Tileset is {0.3600, 0.5600, 0.8000, 1.0000}.
        The initial zoom level of the Glimmr Automap Tileset is 2.

    If we don't explicitly include these parameters, then we will have one zoom-level (1.0000, or 100%), with the initial zoom level set to 1.

    It is not recommended that you use zoom levels greater than 1.0000, as image quality will degrade. Instead, create your tiles as large as the largest size you want them to appear on screen, and use 1.0000 as your highest zoom level, with fractional values for lower zoom levels.