Constructors
constructor
- new TileLayer(numX: number, numY: number, tileWidth: number, tileHeight: number): TileLayer
-
Parameters
-
numX: number
-
numY: number
-
tileWidth: number
-
tileHeight: number
Properties
Private
_numX
_numX: number
Private
_numY
_numY: number
Private
_tileHeight
_tileHeight: number
Private
_tileWidth
_tileWidth: number
Accessors
height
- get height(): number
-
Returns number
tileCountX
- get tileCountX(): number
-
Returns number
tileCountY
- get tileCountY(): number
-
Returns number
tileHeight
- get tileHeight(): number
-
Returns number
tileWidth
- get tileWidth(): number
-
Returns number
width
- get width(): number
-
Returns number
Methods
Private
_indexWithRepeat
- _indexWithRepeat(v: number, m: TileRepeat, num: number): number
-
Returns number
getTile
- getTile(x: number, y: number): Tile
-
toTileIndex
- toTileIndex(x: number, y: number): number
-
Returns number