Initializer

init(tileGroups:tileSetType:)

Initializes a new tile set with an array of tile groups and specified layout.

Declaration

init(tileGroups: [SKTileGroup], tileSetType: SKTileSetType)

Parameters

tileGroups

An array of SKTileGroup objects from which to create the tile set from.

tileSetType

The arrangement of the tiles.

Return Value

A new tile set.

See Also

Creating a Tile Set Programmatically

init(tileGroups: [SKTileGroup])

Initializes a new tile set with an array of tile groups and rectangular grid layout.