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
  • getAllHitboxes(tag: string): Iterable<Polygon>
  • getDimensionX(): number
  • getDimensionY(): number
  • getHeight(): number
  • 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
  • isFlippedDiagonally(x: number, y: number): boolean
  • isFlippedHorizontally(x: number, y: number): boolean
  • isFlippedVertically(x: number, y: number): boolean

Properties

The time map that contains this layer.

Generated using TypeDoc