melonJS
    Preparing search index...

    Interface LDtkProjectJson

    a project file

    interface LDtkProjectJson {
        bgColor: string;
        defaultGridSize: number;
        defs: {
            entities: LDtkEntityDef[];
            enums: LDtkEnumDef[];
            externalEnums?: LDtkEnumDef[];
            layers: LDtkLayerDef[];
            levelFields?: unknown[];
            tilesets: LDtkTilesetDef[];
        };
        externalLevels: boolean;
        iid: string;
        jsonVersion: string;
        levels: LDtkLevelJson[];
        toc?: LDtkTocEntry[];
        worldGridHeight?: number
        | null;
        worldGridWidth?: number | null;
        worldLayout?: string | null;
        worlds: LDtkWorldJson[];
    }
    Index
    bgColor: string
    defaultGridSize: number
    defs: {
        entities: LDtkEntityDef[];
        enums: LDtkEnumDef[];
        externalEnums?: LDtkEnumDef[];
        layers: LDtkLayerDef[];
        levelFields?: unknown[];
        tilesets: LDtkTilesetDef[];
    }
    externalLevels: boolean
    iid: string
    jsonVersion: string
    levels: LDtkLevelJson[]

    empty in a project of several worlds: its levels are in worlds

    toc?: LDtkTocEntry[]

    the entities whose definition asks to be listed, wherever they are

    worldGridHeight?: number | null
    worldGridWidth?: number | null

    the size of a GridVania world's cells; null in a project of several worlds, where each world has its own

    worldLayout?: string | null

    Free, GridVania, LinearHorizontal or LinearVertical; null in a project of several worlds

    worlds: LDtkWorldJson[]

    empty unless the project was set up for several worlds