Options
All
  • Public
  • Public/Protected
  • All
Menu

A tile map layer transformed with an affine transformation.

Hierarchy

  • TransformedCollisionTileMapLayer

Index

Constructors

Methods

  • get(x: number, y: number): undefined | TransformedCollisionTile
  • Parameters

    • x: number

      The layer column.

    • y: number

      The layer row.

    Returns undefined | TransformedCollisionTile

    The tile from the tile set.

  • getAllHitboxes(tag: string): Iterable<Polygon>
  • Parameters

    • tag: string

      The tile tag.

    Returns Iterable<Polygon>

    All the hitboxes from the tiles having the right tag.

  • getDimensionX(): number
  • The number of tile columns in the layer.

    Returns number

  • getDimensionY(): number
  • The number of tile rows in the layer.

    Returns number

  • getHeight(): number
  • Returns number

    The layer height in pixels.

  • getHitboxes(tag: string, xMin: number, yMin: number, xMax: number, yMax: number): Iterable<Polygon>
  • Parameters

    • tag: string

      The tile tag.

    • xMin: number

      The fist column to include.

    • yMin: number

      The fist row to include.

    • xMax: number

      The last column to include.

    • yMax: number

      The last row to include.

    Returns Iterable<Polygon>

    All the hitboxes from the tiles overlapping the given area where tiles have the right tag.

  • getWidth(): number
  • Returns number

    The layer width in pixels.

  • isFlippedDiagonally(x: number, y: number): boolean
  • Parameters

    • x: number

      The layer column.

    • y: number

      The layer row.

    Returns boolean

    true if the tile is flipped diagonally.

  • isFlippedHorizontally(x: number, y: number): boolean
  • Parameters

    • x: number

      The layer column.

    • y: number

      The layer row.

    Returns boolean

    true if the tile is flipped horizontally.

  • isFlippedVertically(x: number, y: number): boolean
  • Parameters

    • x: number

      The layer column.

    • y: number

      The layer row.

    Returns boolean

    true if the tile is flipped vertically.

Properties

The time map that contains this layer.

Generated using TypeDoc