phaser - v4.0.0-rc.4
    Preparing search index...
    • Internally used method to keep track of the tile indexes that collide within a layer. This updates LayerData.collideIndexes to either contain or not contain the given tileIndex.

      Parameters

      • tileIndex: number

        The tile index to set the collision boolean for.

      • collides: boolean

        Should the tile index collide or not?

      • layer: LayerData

        The Tilemap Layer to act upon.

      Returns void