public void Animate(JudgementResult result) { // scale roughly in-line with visual appearance of notes Vector2 scale = new Vector2(1, 0.6f); if (result.Judgement is HoldNoteTickJudgement) { scale *= 0.5f; } this.ScaleTo(scale); largeFaint .ResizeTo(default_large_faint_size) .Then() .ResizeTo(default_large_faint_size * new Vector2(5, 1), PoolableHitExplosion.DURATION, Easing.OutQuint) .FadeOut(PoolableHitExplosion.DURATION * 2); mainGlow1 .ScaleTo(1) .Then() .ScaleTo(1.4f, PoolableHitExplosion.DURATION, Easing.OutQuint); this.FadeOutFromOne(PoolableHitExplosion.DURATION, Easing.Out); }
protected override void LoadComplete() { base.LoadComplete(); circle.ResizeTo(circle.Size * new Vector2(4, 20), 1000, Easing.OutQuint); this.FadeIn(16).Then().FadeOut(500, Easing.OutQuint); Expire(true); }
protected override void LoadComplete() { base.LoadComplete(); const double duration = 400; largeFaint .ResizeTo(largeFaint.Size * new Vector2(5, 1), duration, Easing.OutQuint) .FadeOut(duration * 2); this.FadeInFromZero(50).Then().FadeOut(duration, Easing.Out); Expire(true); }
protected override void LoadComplete() { const double duration = 200; base.LoadComplete(); largeFaint .ResizeTo(largeFaint.Size * new Vector2(5, 1), duration, Easing.OutQuint) .FadeOut(duration * 2); mainGlow1.ScaleTo(1.4f, duration, Easing.OutQuint); this.FadeOut(duration, Easing.Out); }
private void applyTransforms(int randomSeed) { const double duration = 400; // we want our size to be very small so the glow dominates it. largeFaint.Size = new Vector2(0.8f); largeFaint .ResizeTo(largeFaint.Size * new Vector2(5, 1), duration, Easing.OutQuint) .FadeOut(duration * 2); const float angle_variance = 15; // should be less than 45 directionalGlow1.Rotation = StatelessRNG.NextSingle(-angle_variance, angle_variance, randomSeed, 4); directionalGlow2.Rotation = StatelessRNG.NextSingle(-angle_variance, angle_variance, randomSeed, 5); this.FadeInFromZero(50).Then().FadeOut(duration, Easing.Out); }
protected override void LoadComplete() { base.LoadComplete(); circle.FadeIn(500, Easing.OutQuint); circle.ResizeTo(new Vector2(0.8f), 500, Easing.OutQuint); }