SpritesheetAnimator - HermesPasser/Ramu GitHub Wiki

class SpritesheetAnimator : GameObj

Description

Unify and controls Spritesheets.

Note: in the next version this will be renamed to Animator and will supports SpriteAnimation.

Constructor Parameters

  • int x: Position in x.
  • int y: Position in y.
  • int width: Width.
  • int height: Height.
let sh = new SpritesheetAnimation(Ramu.Utils.getImage("image.png"),10,10,10,10);
sh.addFrame(new Rect(0,0,5,5));
let animator = new SpritesheetAnimator(10, 10, 10, 10);
animator.addAnimation("id", sh); 

Properties

Public Methods

Inherited Members