melonJS
    Preparing search index...

    Interface LDtkLevelInfo

    a level of a project, and where it stands in its world

    interface LDtkLevelInfo {
        bgColor: string;
        depth: number;
        fields: Record<string, unknown>;
        height: number;
        id: string;
        identifier: string;
        iid: string;
        json: LDtkLevelJson;
        neighbours: { dir: string; identifier: string }[];
        width: number;
        world: string;
        x: number;
        y: number;
    }
    Index
    bgColor: string

    the level's background color, as #rrggbb

    depth: number

    the level's depth in its world: a higher one is drawn over a lower one

    fields: Record<string, unknown>

    the level's custom fields, by name

    height: number

    the level's height, in pixels

    id: string

    the id the level is loaded by: level.load(id)

    identifier: string

    the level's identifier in LDtk

    iid: string

    the level's unique id in LDtk

    the level as LDtk saves it

    neighbours: { dir: string; identifier: string }[]

    the levels next to it: their identifier, and the side they are on (n, s, w, e, a diagonal, < below, > above, o overlapping)

    width: number

    the level's width, in pixels

    world: string

    the identifier of the world the level belongs to; empty in a project of one world

    x: number

    where the level's top left corner is in its world, in pixels

    y: number

    where the level's top left corner is in its world, in pixels