Artfile (DEF): Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
'''artfile''' { [...]} | <span {{code}}>'''artfile''' { [...]}</span> | ||
loads an ART file. You can use the "tile" sub-token to overwrite the starting tilenum of the file from def. | loads an ART file. You can use the "tile" sub-token to overwrite the starting tilenum of the file from def. | ||
Line 7: | Line 7: | ||
== Tokens == | == Tokens == | ||
'''file''' <filename> | <span {{code}}>'''file''' <filename></span> | ||
The .art file to load from. | The .art file to load from. | ||
'''tile''' <tilenum> | <span {{code}}>'''tile''' <tilenum></span> | ||
The starting tilenum of the images in the art. | The starting tilenum of the images in the art. | ||
Line 17: | Line 17: | ||
== Examples == | == Examples == | ||
artfile { file "whatever.art" } // loads whatever.art just as if it had been named TILES020.ART | 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 | artfile { file "whatever.art" tile 2000 } // loads whatever.art starting at index 2000 instead of the tilestart value contained within it | ||
[[Category:DEF commands]] | [[Category:DEF commands]] |
Latest revision as of 04:34, 23 February 2020
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