LDtkTileset

class LDtkTileset(val identifier: String, val uid: Int, val cellSize: Int, val pxWidth: Int, val pxHeight: Int, val tiles: List<TextureSlice>) : TileSet

Author

Colton Daily

Constructors

Link copied to clipboard
fun LDtkTileset(identifier: String, uid: Int, cellSize: Int, pxWidth: Int, pxHeight: Int, tiles: List<TextureSlice>)

Functions

Link copied to clipboard
fun getAtlasX(tileId: Int): Int

Get the X pixel coordinate (in the atlas image) from a specified tile ID

Link copied to clipboard
fun getAtlasY(tileId: Int): Int

Get the Y pixel coordinate (in the atlas image) from a specified tile ID

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val uid: Int