LDtkTileInstance

@Serializable
data class LDtkTileInstance(val d: List<Int>, val f: Int, val px: List<Int>, val src: List<Int>, val t: Int)

This structure represents a single tile from a given Tileset.

Constructors

Link copied to clipboard
fun LDtkTileInstance(d: List<Int>, f: Int, px: List<Int>, src: List<Int>, t: Int)

Properties

Link copied to clipboard
val d: List<Int>

Internal data used by the editor.

Link copied to clipboard
val f: Int

"Flip bits", a 2-bits integer to represent the mirror transformations of the tile.

Link copied to clipboard
val px: List<Int>

Pixel coordinates of the tile in the layer ([x,y] format). Don't forget optional layer offsets, if they exist!

Link copied to clipboard
val src: List<Int>

Pixel coordinates of the tile in the tileset ([x,y] format)

Link copied to clipboard
val t: Int

The Tile ID in the corresponding tileset.