1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-18 20:22:56 +08:00
osu-lazer/osu.Game.Modes.Taiko/Objects/Drawable/Pieces/FinisherPiece.cs

29 lines
843 B
C#
Raw Normal View History

using OpenTK;
namespace osu.Game.Modes.Taiko.Objects.Drawable.Pieces
{
/// <summary>
/// A type of circle piece that encapsulates a circle piece to visualise it as a "finisher" hitobject.
/// <para>
/// Finisher hitobjects are 1.5x larger, while maintaining the same length.
/// </para>
/// </summary>
public class FinisherPiece : ScrollingCirclePiece
{
public FinisherPiece(ScrollingCirclePiece original)
{
// First we scale the note up
Scale = new Vector2(1.5f);
Children = new[]
{
original
};
// Next we reduce the draw width for drum rolls to keep the width
// equal to that of a non-finisher drum roll
original.Width /= 1.5f;
}
}
}