Beispiel #1
0
 public CatcherTrailEntry(double startTime, CatcherAnimationState catcherState, float position, Vector2 scale, CatcherTrailAnimation animation)
 {
     LifetimeStart = startTime;
     CatcherState  = catcherState;
     Position      = position;
     Scale         = scale;
     Animation     = animation;
 }
Beispiel #2
0
        private void applyTransforms(CatcherTrailAnimation animation)
        {
            switch (animation)
            {
            case CatcherTrailAnimation.Dashing:
            case CatcherTrailAnimation.HyperDashing:
                this.FadeTo(0.4f).FadeOut(800, Easing.OutQuint);
                break;

            case CatcherTrailAnimation.HyperDashAfterImage:
                this.MoveToOffset(new Vector2(0, -10), 1200, Easing.In);
                this.ScaleTo(Scale * 0.95f).ScaleTo(Scale * 1.2f, 1200, Easing.In);
                this.FadeOut(1200);
                break;
            }

            Expire();
        }