Skip to content

Commit

Permalink
Doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
Eemeli Kelokorpi committed Jul 29, 2014
1 parent ec01a07 commit b17c89e
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/engine/audio.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ game.module(
'use strict';

/**
Audio manager.
@class Audio
@extends game.Class
**/
Expand Down
44 changes: 37 additions & 7 deletions src/engine/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,13 +305,35 @@ game.TilingSprite = game.PIXI.TilingSprite.extend({
});

/**
Sprite animation.
http://www.goodboydigital.com/pixijs/docs/classes/MovieClip.html
Frame by frame animation.
@class Animation
@extends game.Container
@constructor
@param {Array} textures
**/
game.Animation = game.PIXI.MovieClip.extend({
/**
@property {Number} animationSpeed
@default 1
**/
/**
@property {Array} textures
**/
/**
@property {Boolean} loop
**/
/**
@property {Number} currentFrame
**/
/**
@property {Boolean} playing
**/
/**
@property {Number} totalFrames
**/
/**
@property {Function} onComplete
**/
init: function(textures) {
if (typeof textures === 'string') {
var frames = Array.prototype.slice.call(arguments);
Expand All @@ -325,15 +347,23 @@ game.Animation = game.PIXI.MovieClip.extend({
this._super(textures);
},

/**
Add to container.
@method addTo
@param {game.Container} container
**/
addTo: function(container) {
container.addChild(this);
return this;
}

/**
@method play
**/
/**
@method stop
**/
/**
@method gotoAndPlay
**/
/**
@method gotoAndStop
**/
});

});

0 comments on commit b17c89e

Please sign in to comment.