Interface Tilemap

interface Tilemap {
    getHeight(): number;
    getLayers(): TileLayer[];
    getOrientation(): Orientation;
    getTileAt(x, y, layer?): undefined | Tile;
    getWidth(): number;
    hasTileAt(x, y, layer?): boolean;
}

Implemented by

Methods

  • Parameters

    • x: number
    • y: number
    • Optional layer: string

    Returns boolean