SpritesheetAnimation - HermesPasser/Ramu GitHub Wiki
class
SpritesheetAnimation : SpriteAnimation
Description
Displays an animation using sheets of an image.
Constructor Parameters
Image Object
img: The image.int
x: Position in x.int
y: Position in y.int
width: Width.int
height: 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));