Contents

init(texture:normalTexture:size:)

Initializes a new tile definition with a single texture and separate normal texture for simulating 3D lighting.

Declaration

init(texture: SKTexture, normalTexture: SKTexture, size: CGSize)

Parameters

  • texture:

    The texture to reference for the definition’s content.

  • normalTexture:

    The texture to reference for generating normals to simulate 3D lighting.

  • size:

    The size of the tile in points.

Return Value

A new tile definition.