Class

SKTileGroupRule

Rules that describe how various tiles should be placed in a map.

Declaration

@interface SKTileGroupRule : NSObject

Overview

When a tile is filled in a tile map, the tile group rule defines how neighboring tiles are populated based on adjacency rules. A rule with multiple definitions uses the placement weights of the definitions to randomly select which to use.

Topics

Creating a Tile Group Rule

- initWithAdjacency:tileDefinitions:

Initializes a new tile group rule with adjacency rules and tile definitions.

Accessing or Setting Tile Group Rule Properties

adjacency

The adjacency requirement for this rule.

SKTileAdjacencyMask

An enumeration defining how neighboring tiles are automatically placed next to each other.

name

A name associated with the tile group rule.

tileDefinitions

The tile definitions used for this rule.

Relationships

Inherits From

See Also

Tiling

SKTileMapNode

A two-dimensional array of images.

SKTileDefinition

A single tile that can be repeated in a tile map.

SKTileGroup

A set of tiles that collectively define one type of terrain.

SKTileSet

A container for related tile groups.