Constructors
constructor
- new Tileset(textureKey: string, tileW: number, tileH: number, rows: number, cols: number, game: Game, scene: Scene): Tileset
Parameters
textureKey: string
tileW: number
tileH: number
rows: number
cols: number
Methods
Protected createTile
- createTile(x: number, y: number, w: number, h: number): Tile
Parameters
x: number
y: number
w: number
h: number
getTile
- getTile(num: number): undefined | Tile
Parameters
Returns undefined | Tile
Creates a DuckEngine Tileset
The Tileset Class. Stores information about a tileset image and splits it into tiles
2.0.0