1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 10:33:07 +08:00

Use constant value for offset

This commit is contained in:
smoogipoo 2019-08-27 15:21:54 +09:00
parent bc7a81e733
commit 2b22fd799d

View File

@ -25,6 +25,11 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables
private const float target_ring_scale = 5f;
private const float inner_ring_alpha = 0.65f;
/// <summary>
/// Offset away from the start time of the swell at which the ring starts appearing.
/// </summary>
private const double ring_appear_offset = 100;
private readonly List<DrawableSwellTick> ticks = new List<DrawableSwellTick>();
private readonly Container bodyContainer;
@ -183,7 +188,7 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables
{
base.UpdateInitialTransforms();
using (BeginAbsoluteSequence(HitObject.StartTime - 100, true))
using (BeginAbsoluteSequence(HitObject.StartTime - ring_appear_offset, true))
targetRing.ScaleTo(target_ring_scale, 400, Easing.OutQuint);
}
@ -220,7 +225,7 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables
// Make the swell stop at the hit target
X = Math.Max(0, X);
if (Time.Current >= HitObject.StartTime - 100)
if (Time.Current >= HitObject.StartTime - ring_appear_offset)
ProxyContent();
else
UnproxyContent();