Skip to content

Commit

Permalink
jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
oberhamsi committed Mar 20, 2015
1 parent 2c409e8 commit a10a994
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/gamejs/animate.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ var gamejs = require('../gamejs');
*
* @example
* var spriteSheet = new SpriteSheet(sheetSurface, {width: 16, height: 16});
* var animation = new Animation(spriteSheet, {walk: [0,1,2,3], loop: true});
* animation.setState('walk');
* var animation = new Animation(spriteSheet, "walk", {walk: [0,1,2,3], loop: true});
* ....
* animation.update(msDuration)
* ....
* display.blit(animation.currentFrame);
* display.blit(animation.image);
*
*/

Expand Down

0 comments on commit a10a994

Please sign in to comment.