SpritesheetAnimation
Douglas Lacerda edited this page Sep 7, 2018
·
3 revisions
class
SpritesheetAnimation : SpriteAnimation
Displays an animation using sheets of an image.
-
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));