melonJS
    Preparing search index...

    Interface ObjectTile

    the rectangle of a tileset an entity is drawn with in LDtk

    interface ObjectTile {
        atlas: TextureAtlas;
        borders?: number[];
        height: number;
        mode: string;
        region: string;
        width: number;
        x: number;
        y: number;
    }
    Index

    a texture atlas over the tileset's image, holding the rectangle as a region

    borders?: number[]

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

    height: number

    the rectangle's height, in pixels

    mode: string

    how the tile fills the entity's box, as set in LDtk: Cover, FitInside, Repeat, Stretch, FullSizeCropped, FullSizeUncropped or NineSlice

    region: string

    the name of the rectangle's region in the atlas

    width: number

    the rectangle's width, in pixels

    x: number

    the rectangle's left edge in the image, in pixels

    y: number

    the rectangle's top edge in the image, in pixels