Skip to content

ShadowCaster

Tile set whose tiles darken the cells below them with a cliff shadow.

Specification
Applies to
tile controls
File
theater control file
Section
[<TileSet ID>]
Value
boolean
When omitted
no

A set carrying the flag registers the index of its first tile in a table of shadow-casting sets, and its tiles are marked as casters — but only if ShadowTiles also gives a non-zero figure. Without that, the set takes up a table slot and no tile of it ever casts anything.

What a marked tile draws is not chosen from the artwork of the set. The engine keeps a fixed table of forty shadow descriptions, indexed by a tile’s distance from the first tile of the caster set it matched, and each entry names a frame of the shared cell-shadow shape, the sub-tile the shadow belongs on, and where to place it. Only positions 20 through 32 of that table carry a frame, and those same positions carry the list of cells to mark as overshadowed so that they redraw along with the cliff. A tile at any other position is marked as a caster, is asked for a shadow, and draws nothing. The shadow is also drawn only on the sub-tile the entry names, so a cell showing a different sub-tile of the same tile gets none.

TEMPERAT.INI
[TileSet0010] ; example cliff set
SetName=Cliffs
FileName=CLIFF
TilesInSet=40
ShadowCaster=yes
ShadowTiles=40
See alsoShadowTiles, TilesInSet