kts.SetRotate – set up rotated versions of tiles
kts.SetRotate(tile1, tile2)
kts.SetRotate(tile1, tile2, tile3, tile4)
This function tells the dungeon generator that the two or four tiles given are rotated versions of each other.
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 rotated versions of certain tiles (for example, a skull facing in one of four possible directions). This is set up by the kts.SetRotate
function.
The two versions of the function call correspond to two possible cases:
kts.SetRotate
call. None.
Errors may be raised if the input parameters have the wrong type.
Several of the standard Knights tiles contain reflected and rotated versions. See tiles.lua.