Class

SKTileSet

A container for related tile groups.

Declaration

@interface SKTileSet : NSObject

Overview

An SKTileSet object contains an array of tile groups that define which tile definitions are available for use in a tile map.

Tile sets also define the arrangement of tiles within a tile map. In addition to the default rectangular grid layout, tile sets can also define hexagonal and isometric layouts.

Topics

Creating a Tile Set from a File

+ tileSetNamed:

Initializes a tile set by searching the app bundle for an archived .sks file by name.

+ tileSetFromURL:

Initializes a tile set from a URL to an archived .sks file.

Creating a Tile Set Programmatically

Create a tile set by passing in the various groups that make up the set.

- initWithTileGroups:

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

- initWithTileGroups:tileSetType:

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

Accessing or Reading a Tile Set's Properties

defaultTileGroup

The tile set's default tile group.

defaultTileSize

The tile set's default tile size.

name

A name associated with the tile set.

tileGroups

The tile set's array of tile group objects.

type

The tile set's type.

SKTileSetType

An enumeration defining how tiles are arranged.

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.

SKTileGroupRule

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