Initializer

init(texture:)

Initializes a new tile definition with a single texture.

Declaration

init(texture: SKTexture)

Parameters

texture

The texture to reference for the definition's size and content.

Return Value

A new tile definition.

Discussion

The size of the newly created tile definition will be the same as the texture used to initialize it.