melonJS
    Preparing search index...

    Interface TileLayerOptions

    how Grid.fromTileLayer reads a layer

    interface TileLayerOptions {
        solid?: (tile: Tile | null, col: number, row: number) => boolean;
        weight?: (tile: Tile | null, col: number, row: number) => number;
        x?: number;
        y?: number;
    }

    Hierarchy (View Summary)

    Index
    solid?: (tile: Tile | null, col: number, row: number) => boolean

    whether a cell is solid, from the tile in it (null for an empty cell)

    a cell with a tile is solid, an empty one is open
    
    weight?: (tile: Tile | null, col: number, row: number) => number

    what entering a cell costs, 1 or more

    the tile's weight custom property (set in Tiled's tileset editor), or 1

    x?: number

    where the layer's top left corner is in the world

    the layer's own position, its containers' included
    
    y?: number
    the layer's own position, its containers' included