Class TMXRenderer

The map renderer base class

Hierarchy (view full)

Constructors

Properties

bounds: Bounds
cols: number
rows: number
tileheight: number
tilewidth: number

Methods

  • return the tile position corresponding to the specified pixel

    Parameters

    • x: number

      X coordinate

    • y: number

      Y coordinate

    • Optionalv: any

      an optional vector object where to put the return values

    Returns Vector2d

  • return the pixel position corresponding of the specified tile

    Parameters

    • col: number

      tile horizontal position

    • row: number

      tile vertical position

    • Optionalv: any

      an optional vector object where to put the return values

    Returns Vector2d