Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Tileset

Tilesets are bitmap images which are used to render Tile layers.

See Layer for more information.

Visit https://ldtk.io/docs/tutorials/tile-layers/ for more information about tileset usage.

Hierarchy

  • Tileset

Index

Constructors

Properties

Accessors

Constructors

constructor

Properties

Readonly world

world: World

Accessors

gridSize

  • get gridSize(): number
  • Size of one tile

    This represents both width and height

    Returns number

id

  • get id(): string
  • Unique string identifier

    Returns string

padding

  • get padding(): number
  • Distance in pixels from image borders

    Returns number

path

  • get path(): string
  • Path to the source file, relative to the current project JSON file

    Returns string

size

spacing

  • get spacing(): number
  • Space in pixels between all tiles

    Returns number

uid

  • get uid(): number
  • Unique Intidentifier

    Returns number

Generated using TypeDoc