Skip to content

Commit

Permalink
slow down music when exiting
Browse files Browse the repository at this point in the history
  • Loading branch information
flustix committed Dec 14, 2024
1 parent d3cdf2a commit 6a00561
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion fluXis.Game/FluXisGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,8 @@ public override void Exit(bool restart)
return;

toolbar.Hide();
globalClock.VolumeOut(1500);
globalClock.RateTo(0, 1500, Easing.Out);
globalClock.VolumeOut(1300);
exitAnimation.Show(buffer.Hide, () => base.Exit(false));
isExiting = true;
}
Expand Down
6 changes: 3 additions & 3 deletions fluXis.Game/Overlay/Exit/ExitAnimation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public partial class ExitAnimation : FullInputBlockingContainer
private const int bars_delay = 200;

private const string goodbye = "Goodbye!";
private const string scramble_chars = "!@#$%^&*()_+-=[]{};':\",./<>?\\|`~";
private const string scramble_chars = "ABCDEFGHIJKMNOPQRSTUVWXYZ@#$%&*()+=[]{}~";

private Sample sample;

Expand Down Expand Up @@ -83,10 +83,10 @@ public void Show(Action onBarCompletion, Action onCompletion)

barsContainer.Delay(bars_duration + bars_delay).Schedule(onBarCompletion);

text.ScaleTo(1.1f).Delay(bars_duration)
text.ScaleTo(1.4f).Delay(bars_duration)
.Schedule(() => Scheduler.AddDelayed(unscrambleOneRandomChar, 50, true))
.FadeIn(400).ScaleTo(1, 800, Easing.OutQuint)
.Then(600).FadeOut(600).Schedule(onCompletion);
.Then(600).FadeOut(600).OnComplete(_ => onCompletion());
}

private void unscrambleOneRandomChar()
Expand Down

0 comments on commit 6a00561

Please sign in to comment.