// Create an entity, add the animation component and define
// an animation using frames 1, 2, 3 and 4, with an FPS of
// 25 and looping forever (-1)
var entity = new IgeEntity()
.addComponent(IgeAnimationComponent)
.animation.define('anim1', [1, 2, 3, 4], 25, -1);