fill(with:)
When creating a tile map node programmatically, this function performs a fill operation with the specified tile group.
Declaration
func fill(with tileGroup: SKTileGroup?)Parameters
- tileGroup:
The tile group that will be used to fill the map.
Mentioned in
Discussion
This function is for use when you’re creating a tile map programmatically, versus creating it ahead of time with the scene editor.