Add basic hyperdash movement

Doesn't restrict direction yet. Also improves readability of fruit catch detection.
This commit is contained in:
Dean Herbert
2017-12-01 19:24:48 +09:00
parent 881745d756
commit 51cae24a26
4 changed files with 108 additions and 10 deletions

View File

@ -27,7 +27,15 @@ namespace osu.Game.Rulesets.Catch.Objects
public float Scale { get; set; } = 1;
public bool HyperDash { get; set; }
/// <summary>
/// Whether this fruit can initiate a hyperdash.
/// </summary>
public bool HyperDash => HyperDashTarget != null;
/// <summary>
/// The target fruit if we are to initiate a hyperdash.
/// </summary>
public CatchHitObject HyperDashTarget;
public override void ApplyDefaults(ControlPointInfo controlPointInfo, BeatmapDifficulty difficulty)
{