SpritesheetAnimation - HermesPasser/Ramu GitHub Wiki
class SpritesheetAnimation : SpriteAnimation
Description
Displays an animation using sheets of an image.
Constructor Parameters
Image Objectimg: The image.intx: Position in x.inty: Position in y.intwidth: Width.intheight: Height.
let img = Ramu.Utils.getImage("image.png");
let sa = new SpritesheetAnimation(img,10,10,10,10);
sa.addFrame(new Rect(0,0,5,5));