1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 06:47:24 +08:00

move the 250 appear disance to a const var.

This commit is contained in:
miterosan 2018-08-05 15:10:42 +02:00
parent 546bdf0618
commit f02d1f9013

View File

@ -41,12 +41,13 @@ namespace osu.Game.Rulesets.Osu.Mods
// avoiding that the player can see the abroupt move.
const int pre_time_offset = 1000;
const float appearDistance = 250;
using (drawable.BeginAbsoluteSequence(hitObject.StartTime - hitObject.TimeFadeIn - pre_time_offset, true))
{
drawable
.MoveToOffset(new Vector2((float)Math.Cos(theta), (float)Math.Sin(theta)) * 250)
.MoveTo(originalPosition, hitObject.TimeFadeIn + pre_time_offset, Easing.InOutSine);
.MoveToOffset(new Vector2((float)Math.Cos(theta), (float)Math.Sin(theta)) * appearDistance)
}
// That way slider ticks come all from the same direction.