TileMap
Constructors
new
TileMap
(tileWidth: number, titleHight: number, image: HTMLImageElement, rect: Rect, options?: TileMapInitOptions)
Creates a new instance of the TileMap object
Properties
tileWidth
:number
get
Gets the tile width
titleHight
:number
get
Gets the tile hight
cols
:number
get
Gets the number of columns
rows
:number
get
Gets the number of rows
Methods
cell
(col: number) ⇨ Surface
(row: number, col: number) ⇨ Surface
Gets the tile image from the TileMap