Better life time end.

This commit is contained in:
smoogipooo 2017-03-29 09:36:07 +09:00
parent 7b479ac737
commit 2a018e708d
2 changed files with 11 additions and 1 deletions

View File

@ -35,6 +35,17 @@ public DrawableDrumRoll(DrumRoll drumRoll)
} }
} }
protected override void LoadComplete()
{
base.LoadComplete();
// This is naive, however it's based on the reasoning that the hit target
// is further than mid point of the play field, so the time taken to scroll in should always
// be greater than the time taken to scroll out to the left of the screen.
// Thus, using PreEmpt here is enough for the drum roll to completely scroll out.
LifetimeEnd = drumRoll.EndTime + drumRoll.PreEmpt;
}
protected override void CheckJudgement(bool userTriggered) protected override void CheckJudgement(bool userTriggered)
{ {
if (userTriggered) if (userTriggered)

View File

@ -30,7 +30,6 @@ protected DrawableTaikoHitObject(TaikoHitObject hitObject)
protected override void LoadComplete() protected override void LoadComplete()
{ {
LifetimeStart = HitObject.StartTime - HitObject.PreEmpt * 2; LifetimeStart = HitObject.StartTime - HitObject.PreEmpt * 2;
LifetimeEnd = HitObject.StartTime + HitObject.PreEmpt;
base.LoadComplete(); base.LoadComplete();
} }