Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ITile

Hierarchy

  • ITile

Index

Properties

Optional animation

animation: ITileAnimationFrame[]

Array of frames.

id

id: number

Local ID of the tile within it's tileset.

Optional image

image: undefined | string

Image to render, set when this is an imagelayer

Optional imageheight

imageheight: undefined | number

Image height, set when this is an imagelayer

Optional imagewidth

imagewidth: undefined | number

Image width, set when this is an imagelayer

Optional objectgroup

objectgroup: IObjectgroup

Layer with the type 'objectgroup'

Optional probability

probability: undefined | number

Percentage chance this tile is chosen when competing with others in the editor (double)

Optional properties

properties: IProperty[]

A list of properties (name, value, type)

Optional terrain

terrain: [number, number, number, number]

index of terrain for each corner of tile The order of indices is: top-left, top-right, bottom-left, bottom-right.

Optional type

type: undefined | string

The type of the tile (optional).

Generated using TypeDoc