mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
update SliderTick calculation + more ticks in tests
math is hard >_<
This commit is contained in:
@ -9,14 +9,22 @@ namespace osu.Game.Rulesets.Osu.Objects
|
||||
public class SliderTick : OsuHitObject
|
||||
{
|
||||
public int SpanIndex { get; set; }
|
||||
public double SliderStartTime { get; set; }
|
||||
public double SpanStartTime { get; set; }
|
||||
|
||||
protected override void ApplyDefaultsToSelf(ControlPointInfo controlPointInfo, BeatmapDifficulty difficulty)
|
||||
{
|
||||
base.ApplyDefaultsToSelf(controlPointInfo, difficulty);
|
||||
|
||||
// SliderTicks appear earlier and earlier going further into a Slider.
|
||||
TimePreempt = StartTime - ((StartTime - SliderStartTime) / 2 + SliderStartTime - TimeFadein * 0.66f);
|
||||
double offset;
|
||||
|
||||
if (SpanIndex > 0)
|
||||
// Adding 200 to include the offset stable used.
|
||||
// This is so on repeats ticks don't appear too late to be visually processed by the player.
|
||||
offset = 200;
|
||||
else
|
||||
offset = TimeFadein * 0.66f;
|
||||
|
||||
TimePreempt = (StartTime - SpanStartTime) / 2 + offset;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user