LDtkTileRect

@Serializable
data class LDtkTileRect(val srcRect: List<Int> = emptyList(), val tilesetUid: Int, val h: Int = 0, val w: Int = 0, val x: Int = 0, val y: Int = 0)

Tile data in an Entity instance

Constructors

Link copied to clipboard
fun LDtkTileRect(srcRect: List<Int> = emptyList(), tilesetUid: Int, h: Int = 0, w: Int = 0, x: Int = 0, y: Int = 0)

Properties

Link copied to clipboard
val h: Int = 0

Height in pixels.

Link copied to clipboard

A list of 4 Int values that refers to the tile in the tileset image: [ x, y, width, height ]

Link copied to clipboard

Tileset UID

Link copied to clipboard
val w: Int = 0

Width in pixels.

Link copied to clipboard
val x: Int = 0

X pixel coordinate relative to top-left corner of the tileset image

Link copied to clipboard
val y: Int = 0

Y pixel coordinate relative to top-left corner of the tileset image