plugin/planimationLibrary.js
/**
     * Update the scene based on the current stage information
     * @param  {Plaimation} planimation object
     */
Update the scene based on the current stage information
@param  {Plaimation} planimation object
Update the scene based on the current stage information @param { Plaimation } planimation object
function play(delta, planimation) {
        var sprites = planimation.currentStage
        for (var i = 0; i < sprites.length; i++) {
            var spriteUpdate = planimation.app.stage.getChildByName(sprites[i].name);
            spriteUpdate.position.set(sprites[i].minX * planimation.width, sprites[i].minY * planimation.height);
            if ('rotate' in sprites[i]) {
                updateRotateSprite(spriteUpdate, sprites[i]);
            }
        }
    }
function play ( delta , planimation ) { var sprites = planimation . currentStage for ( var i = 0 ; i < sprites . length ; i ++ ) { var spriteUpdate = planimation . app . stage . getChildByName ( sprites [ i ] . name ) ; spriteUpdate . position . set ( sprites [ i ] . minX * planimation . width , sprites [ i ] . minY * planimation . height ) ; if ( 'rotate' in sprites [ i ] ) { updateRotateSprite ( spriteUpdate , sprites [ i ] ) ; } } }
Update the scene based on the current stage information
 @param  {Plaimation} planimation object
Update the scene based on the current stage information @param { Plaimation } planimation object
// get the sprite based on sprite name // Update the sprite location with new position // Update the sprite with rotate value