kts.SetReflect

Name

kts.SetReflect – set up reflected versions of tiles

Synopsis

kts.SetReflect(tile1, tile2)

Description

This function tells the dungeon generator that tile1 is a horizontally flipped/reflected version of tile2.

The dungeon generator will sometimes randomly create reflected and/or rotated versions of map segments for added variety. In doing so, it may be necessary to create reflected versions of certain tiles (for example, a skull facing east becomes a skull facing west). This is set up by the kts.SetReflect function.

Return Value

None.

Errors

Errors may be raised if the input parameters have the wrong type.

Examples

Several of the standard Knights tiles contain reflected and rotated versions. See tiles.lua.

See Also

kts.LoadSegments

kts.SetRotate