set_tile_data

From ArchaicPixels: HuC and PCEAS Documentation

Jump to: navigation, search

set_tile_data(char *tile_ex);      [ v3.20+ ]
set_tile_data(char *tile_data, int nb_tile, char *pal_ref);

     Define an array of tile to be used by all the tile
     and map functions. 'tile_data' is the address of
     the tile graphics data in memory, 'nb_tile' is
     the number of tile (max. 256), and 'pal_ref' is
     the address of a palette-index array to use
     for tiles; each tile has its own palette index
     attached to it (note that palette indexes must be
     shifted to the left by four bits, ie. 0x40 for
     palette index 4).
     The new 1-parameter form is used together with #inctile_ex()
     or #incchr_ex() directives, where all other relevant data is
     already conveyed in the #incxxx_ex() directive.  Also, this
     form automatically recognizes whether it is being used with
     8x8 (incchr_ex) or 16x16 (inctile_ex) tiles.
Personal tools