Constructors
constructor
- new TMXRenderer(cols, rows, tilewidth, tileheight): TMXRenderer
Parameters
- cols: number
- rows: number
- tilewidth: number
- tileheight: number
Properties
tileheight
tileheight: number
tilewidth
tilewidth: number
Methods
canRender
- canRender(component): boolean
Returns boolean
drawTile
- drawTile(): void
Returns void
drawTileLayer
- drawTileLayer(): void
Returns void
pixelToTileCoords
- pixelToTileCoords(x, y, v?): Vector2d
Parameters
- x: number
- y: number
Optional
v: any
Returns Vector2d
tileToPixelCoords
- tileToPixelCoords(col, row, v?): Vector2d
Parameters
- col: number
- row: number
Optional
v: any
Returns Vector2d
The map renderer base class