Contents

spriteNodeWithImageNamed:

Initializes a textured sprite using an image file.

Declaration

+ (instancetype) spriteNodeWithImageNamed:(NSString *) name;

Parameters

  • name:

    The name of an image file stored in the app bundle.

Return Value

A newly initialized sprite object.

See Also

Creating a Sprite from a Texture