Defined in Module impact.animation, inherits from ig.Class
// Create animation var animSheet = new ig.AnimationSheet( 'sheet.png', 16, 16 ); var anim = new ig.Animation( animSheet, 0.1, [0,1,2,3,2,1] );
ig.AnimationSheet
is a thin wrapper around an ig.Image object. It specifies the width and height for each animation frame in the sheet. It is used by the ig.Animation class.
path
Location of the image filewidth
Width of a single animation frameheight
Height of a single animation frameAn ig.Image object, representing the actual animation sheet
The width/height for a single animation frame, as set in the constructor