Artfile (DEF)

From EDukeWiki
Jump to navigation Jump to search

artfile { [...]}

loads an ART file. You can use the "tile" sub-token to overwrite the starting tilenum of the file from def.

This is useful because ART files will load faster than images loaded through tilefromtexture (which must undergo a color matching process), and because tiles making use of palette indices which have duplicate colors in the stock Duke 3D palette but not in other palettes (such as the 3D Realms screen) are negatively affected by the aforementioned process.

Tokens

file <filename>

The .art file to load from.

tile <tilenum>

The starting tilenum of the images in the art.

Examples

artfile { file "whatever.art" } // loads whatever.art just as if it had been named TILES020.ART
artfile { file "whatever.art" tile 2000 } // loads whatever.art starting at index 2000 instead of the tilestart value contained within it