mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 17:47:29 +08:00
move the 250 appear disance to a const var.
This commit is contained in:
parent
546bdf0618
commit
f02d1f9013
@ -41,12 +41,13 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
|
|
||||||
// avoiding that the player can see the abroupt move.
|
// avoiding that the player can see the abroupt move.
|
||||||
const int pre_time_offset = 1000;
|
const int pre_time_offset = 1000;
|
||||||
|
const float appearDistance = 250;
|
||||||
|
|
||||||
using (drawable.BeginAbsoluteSequence(hitObject.StartTime - hitObject.TimeFadeIn - pre_time_offset, true))
|
using (drawable.BeginAbsoluteSequence(hitObject.StartTime - hitObject.TimeFadeIn - pre_time_offset, true))
|
||||||
{
|
{
|
||||||
drawable
|
drawable
|
||||||
.MoveToOffset(new Vector2((float)Math.Cos(theta), (float)Math.Sin(theta)) * 250)
|
|
||||||
.MoveTo(originalPosition, hitObject.TimeFadeIn + pre_time_offset, Easing.InOutSine);
|
.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.
|
// That way slider ticks come all from the same direction.
|
||||||
|
Loading…
Reference in New Issue
Block a user