Impact

Defined in Module impact.animation, inherits from ig.Class

Synopsis

// 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] );

Description

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.

Constructor

new ig.AnimationSheet( path, width, height )

Properties

.image

An ig.Image object, representing the actual animation sheet

.width, .height

The width/height for a single animation frame, as set in the constructor