mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 21:02:55 +08:00
remove nl and add comment for -1 and +1
This commit is contained in:
parent
d1ffb7c2d7
commit
89a18e4aac
@ -40,6 +40,8 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
Vector2 originalPosition = drawable.Position;
|
Vector2 originalPosition = drawable.Position;
|
||||||
|
|
||||||
const float appear_distance = 250;
|
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 appearTime = hitObject.StartTime - hitObject.TimePreempt - 1;
|
||||||
double moveDuration = hitObject.TimePreempt + 1;
|
double moveDuration = hitObject.TimePreempt + 1;
|
||||||
|
|
||||||
@ -48,7 +50,6 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
drawable
|
drawable
|
||||||
.MoveToOffset(new Vector2((float)Math.Cos(theta), (float)Math.Sin(theta)) * appear_distance)
|
.MoveToOffset(new Vector2((float)Math.Cos(theta), (float)Math.Sin(theta)) * appear_distance)
|
||||||
.MoveTo(originalPosition, moveDuration, Easing.InOutSine);
|
.MoveTo(originalPosition, moveDuration, Easing.InOutSine);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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