Fix notes travelling backwards when hit.

Also improves the gravity curve.
This commit is contained in:
Dean Herbert 2017-04-05 15:11:51 +09:00
parent 28648bf97d
commit 57a068c5d1
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49
2 changed files with 10 additions and 6 deletions

View File

@ -75,12 +75,16 @@ namespace osu.Game.Modes.Taiko.Objects.Drawables
FadeOut(100);
break;
case ArmedState.Hit:
Content.ScaleTo(0.8f, 400, EasingTypes.OutQuad);
Content.MoveToY(-200, 250, EasingTypes.Out);
Content.Delay(250);
Content.MoveToY(0, 500, EasingTypes.In);
FadeOut(600);
const float gravity_time = 300;
const float gravity_travel_height = 200;
Content.ScaleTo(0.8f, gravity_time * 2, EasingTypes.OutQuad);
MoveToY(-gravity_travel_height, gravity_time, EasingTypes.Out);
Delay(gravity_time, true);
MoveToY(gravity_travel_height * 2, gravity_time * 2, EasingTypes.In);
break;
}

View File

@ -71,7 +71,7 @@ namespace osu.Game.Modes.Taiko.Objects.Drawables
/// a time value and the HitObject's StartTime.
/// </summary>
/// <param name="time"></param>
protected virtual void UpdateScrollPosition(double time) => MoveToX((float)((HitObject.StartTime - time) / HitObject.ScrollTime));
protected virtual void UpdateScrollPosition(double time) => X = (float)((HitObject.StartTime - time) / HitObject.ScrollTime);
protected override void Update()
{