Limit horizontal bounds of score display

This commit is contained in:
Dean Herbert 2018-11-18 07:54:53 +09:00
parent 92bb92e9c0
commit 584adaf77d
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ private void updateScores()
var diff = Math.Max(score1.Value, score2.Value) - Math.Min(score1.Value, score2.Value);
losingBar.ResizeWidthTo(0, 400, Easing.OutQuint);
winningBar.ResizeWidthTo((float)Math.Pow(diff / 1000000f, 0.5) / 2, 400, Easing.OutQuint);
winningBar.ResizeWidthTo(Math.Min(0.4f, (float)Math.Pow(diff / 1000000f, 0.5) / 2), 400, Easing.OutQuint);
}
protected override void Update()