melonJS
    Preparing search index...

    Interface LDtkEntityDef

    the definition of an entity

    interface LDtkEntityDef {
        color: string;
        height: number;
        identifier: string;
        nineSliceBorders?: number[];
        pivotX: number;
        pivotY: number;
        tags: string[];
        tileRect?: LDtkTileRect | null;
        tileRenderMode: string;
        tilesetId?: number | null;
        uid: number;
        uiTileRect?: LDtkTileRect | null;
        width: number;
    }
    Index
    color: string
    height: number
    identifier: string
    nineSliceBorders?: number[]

    in NineSlice mode, the borders that are not stretched: up, right, down, left, in pixels

    pivotX: number
    pivotY: number
    tags: string[]
    tileRect?: LDtkTileRect | null

    the entity's tile, before a field changes it: an instance's __tile is the one to draw

    tileRenderMode: string

    how the entity's tile fills its box: Cover, FitInside, Repeat, Stretch, FullSizeCropped, FullSizeUncropped or NineSlice

    tilesetId?: number | null

    the tileset of that tile

    uid: number
    uiTileRect?: LDtkTileRect | null

    the tile LDtk lists the entity with

    width: number