Sprite.*

Type : Library

Revision : 2016.1103

Overview

The Sprite library is a easier way to use the sprites in the game. It's required the spritesheet generated from the Texture Packer.

Functions

Sprite.add()

Sprite.remove()

Sprite.getSheet()

Sprite.getFrameIndx()

Sprite.add()

Type : Function

Library : Sprite.*

Return value : None

Revision : 2016.1103

Overview

Add the sprite resource to the game.

Syntax

Sprite.add(tag, spritesheetImage, spritesheet)
tag (required)

String. The tag of the spritesheet

spritesheetImage (required)

Stirng. The image location of the spritesheet.

spritesheet (required)

Stirng. The spritesheet module generated by the TexturePacker

Using Sprites with tags

Sprite

results matching ""

    No results matching ""