Ejemplo n.º 1
0
        public AnimatedSprite(float x, float y, int time, bool isUpdate, params TextureRegion[] regions)
            : base(x, y)
        {
            this.regions = regions;
            if (isUpdate) updates = new List<IUpdateHandler>();

            countLoop = UNLIMITED;
            animation = new Animator(time, regions.Length);
        }
Ejemplo n.º 2
0
 //================================================================
 //Constructors
 //================================================================
 public AnimatedImage(Vector2 position, int time, TextureRegion[] regions)
     : base(position)
 {
     this.regions = regions;
     animation = new Animator(time, regions.Length);
 }