mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:57:39 +08:00
Add proper HitObject expiration.
This commit is contained in:
parent
f1688499e4
commit
1712a142a5
@ -80,6 +80,7 @@ namespace osu.Game.GameModes.Play.Catch
|
||||
|
||||
s.Transforms.Add(new TransformPosition(Clock) { StartTime = h.StartTime - 200, EndTime = h.StartTime, StartValue = new Vector2(h.Position, -0.1f), EndValue = new Vector2(h.Position, 0.9f) });
|
||||
s.Transforms.Add(new TransformAlpha(Clock) { StartTime = h.StartTime + h.Duration + 200, EndTime = h.StartTime + h.Duration + 400, StartValue = 1, EndValue = 0 });
|
||||
s.Expire(true);
|
||||
|
||||
playfield.Add(s);
|
||||
}
|
||||
|
@ -86,6 +86,7 @@ namespace osu.Game.GameModes.Play.Mania
|
||||
|
||||
s.Transforms.Add(new TransformPositionY(Clock) { StartTime = h.StartTime - 200, EndTime = h.StartTime, StartValue = -0.1f, EndValue = 0.9f });
|
||||
s.Transforms.Add(new TransformAlpha(Clock) { StartTime = h.StartTime + h.Duration + 200, EndTime = h.StartTime + h.Duration + 400, StartValue = 1, EndValue = 0 });
|
||||
s.Expire(true);
|
||||
|
||||
playfield.Add(s);
|
||||
}
|
||||
|
@ -58,6 +58,7 @@ namespace osu.Game.GameModes.Play.Osu
|
||||
|
||||
s.Transforms.Add(new TransformAlpha(Clock) { StartTime = h.StartTime - 200, EndTime = h.StartTime, StartValue = 0, EndValue = 1 });
|
||||
s.Transforms.Add(new TransformAlpha(Clock) { StartTime = h.StartTime + h.Duration + 200, EndTime = h.StartTime + h.Duration + 400, StartValue = 1, EndValue = 0 });
|
||||
s.Expire(true);
|
||||
|
||||
playfield.Add(s);
|
||||
}
|
||||
|
@ -79,6 +79,7 @@ namespace osu.Game.GameModes.Play.Taiko
|
||||
|
||||
s.Transforms.Add(new TransformPositionX(Clock) { StartTime = h.StartTime - 200, EndTime = h.StartTime, StartValue = 1.1f, EndValue = 0.1f });
|
||||
s.Transforms.Add(new TransformAlpha(Clock) { StartTime = h.StartTime + h.Duration + 200, EndTime = h.StartTime + h.Duration + 400, StartValue = 1, EndValue = 0 });
|
||||
s.Expire(true);
|
||||
|
||||
playfield.Add(s);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user