Creates a grid of tiles using a set of textures
Configuration options for the grid
Array of textures to use for the tiles
Optional
Optional function to select which texture to use for each cell
A PIXI Container with the generated tile grid
// Create a random grass fieldconst grassField = createTileGrid({ width: 64, height: 64, cellWidth: 16, cellHeight: 16, centered: true}, grassTextures); Copy
// Create a random grass fieldconst grassField = createTileGrid({ width: 64, height: 64, cellWidth: 16, cellHeight: 16, centered: true}, grassTextures);
Creates a grid of tiles using a set of textures