init(texture:size:)
Initializes a new tile definition of a specified size with a single texture.
Declaration
init(texture: SKTexture, size: CGSize)Parameters
- texture:
The texture to reference for the definition’s content.
- size:
The size of the tile in points.
Return Value
A new tile definition.