Package: pumpkin.display

AnimSpriteSheet


Description

Fast spritesheet renderer, caches display lists to statically allocated sprites.

Note this allocates a single mesh then the points are moved into place, unused points are set to zero. Constraints: All sprites must have the same texture
Very similary display list per frames for best results



Constructors

AnimSpriteSheet

Creates empty sprite sheet.


Functions

addAnimFrameFromMovieClipRange

Add a new animation from a given frame range.

addFrameFromDisplayObject

Add a new animation from a the current stage state.

addAnim

Add new anim and generate unique id (internal)

playAnim

Play anim by anim id.

playAnimOnce

Play anim by anim once by name.

playAnim

Play anim by name.

stop

Stop anim playing.

play

Play current anim.

setFrame

Set current anim frame.

generateMesh

Generate the mesh for the current frame.

frameUpdate

Updates one frame of the active animation and advances the frame.


Variables

STATE_STOPPED

Stopped state ID (internal).

STATE_PLAYING

Playing state ID (internal).

mesh

Generated output mesh

maxMaxVerts

Max number/total number of vericies generated ( internal )

maxIndexMap

Max number/total number of triangle indicies generated ( internal )

frames

AnimFrame Frames list (internal)

anims

AnimInfo anim list (internal)

animNameMap

Anim name to ID map

lastMaterial

Last material used by the mesh generator (internal)

loop

Set animation to loop.