mirror of
https://github.com/ppy/osu
synced 2025-01-09 23:59:44 +00:00
Fix notes travelling backwards when hit.
Also improves the gravity curve.
This commit is contained in:
parent
28648bf97d
commit
57a068c5d1
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user