Example #1
0
 public Skidi()
     : base(new Animation(.05f, "skidi0", "skidi1", "skidi2", "skidi3",
         "skidi4", "skidi5", "skidi6", "skidi7"), 
     Vector2.Zero, new Vector2(0, SkidiGame.ScreenBounds.Height * .8f))
 {
     _anim = new Animate(Animation);
     _defaultPosition = (SkidiGame.ScreenBounds.Size.ToVector2() - Size)*.5f;
     Reset();
 }
Example #2
0
        public AnimateActionState(Sprite target, Animate action)
            : base(target, action)
        {
            _sprite = target;
            Animation = action.Animation;
            SplitTimes = new Bag<float>(action.SplitTimes);

            _originalFrame = Animation.RestoreOriginalSprite ? target.Frame : null;
            _framesCount = Animation.Frames.Count;
            _nextFrame = 0;
            _executedLoops = 0;
        }