phaser - v4.0.0-rc.4
    Preparing search index...
    • Puts an array of tiles or a 2D array of tiles at the given tile coordinates in the specified layer. The array can be composed of either tile indexes or Tile objects. If you pass in a Tile, all attributes will be copied over to the specified location. If you pass in an index, only the index at the specified location will be changed. Collision information will be recalculated within the region tiles were changed.

      Parameters

      • tile: number[] | number[][] | Tile[] | Tile[][]

        A row (array) or grid (2D array) of Tiles or tile indexes to place.

      • tileX: number

        The x coordinate, in tiles, not pixels.

      • tileY: number

        The y coordinate, in tiles, not pixels.

      • recalculateFaces: boolean

        true if the faces data should be recalculated.

      • layer: LayerData

        The Tilemap Layer to act upon.

      Returns void