Given tile map and individual tile dimension this method lays out the tiles and returns the list of scene objects representing the tile map. A tile map is an image where each pixel can be mapped into a scene object using mapping function.
Given tile map and individual tile dimension this method lays out the tiles and returns the list of scene objects representing the tile map. A tile map is an image where each pixel can be mapped into a scene object using mapping function.
Value parameters
map
An image representing the tile map.
mapping
Mapping function that takes a pixel and its coordinates from the tile map and returns a scene object that should represent that tile.
tileDim
The dimension of the individual tile. Note that all tiles will have to be of the same dimension.