Instance Method

initWithTileDefinition:

Creates and initializes a simple tile group with a single tile definition.

Declaration

- (instancetype)initWithTileDefinition:(SKTileDefinition *)tileDefinition;

Parameters

tileDefinition

The tile definition to place in a tile map.

Return Value

A new tile group.

See Also

Creating Tile Groups

Creating Tile Groups Programmatically

Paint tiles on a map by putting tile definitions in a group that you create in code.

- initWithRules:

Creates and initializes a tile group with the specified tile group rules.