1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 06:52:55 +08:00

remove nl and add comment for -1 and +1

This commit is contained in:
miterosan 2018-08-05 15:39:12 +02:00
parent d1ffb7c2d7
commit 89a18e4aac

View File

@ -40,6 +40,8 @@ namespace osu.Game.Rulesets.Osu.Mods
Vector2 originalPosition = drawable.Position;
const float appear_distance = 250;
//the - 1 and + 1 prevents the hit explosion to appear in the wrong position.
double appearTime = hitObject.StartTime - hitObject.TimePreempt - 1;
double moveDuration = hitObject.TimePreempt + 1;
@ -48,7 +50,6 @@ namespace osu.Game.Rulesets.Osu.Mods
drawable
.MoveToOffset(new Vector2((float)Math.Cos(theta), (float)Math.Sin(theta)) * appear_distance)
.MoveTo(originalPosition, moveDuration, Easing.InOutSine);
}
// That way slider ticks come all from the same direction.