diff --git a/osu.Game/Rulesets/Objects/Drawables/DrawableHitObject.cs b/osu.Game/Rulesets/Objects/Drawables/DrawableHitObject.cs index 88990d435c..4bae3e93e6 100644 --- a/osu.Game/Rulesets/Objects/Drawables/DrawableHitObject.cs +++ b/osu.Game/Rulesets/Objects/Drawables/DrawableHitObject.cs @@ -13,6 +13,8 @@ using osu.Game.Rulesets.Objects.Types; using osu.Game.Rulesets.Scoring; using osu.Game.Skinning; using OpenTK.Graphics; +using osu.Framework.Graphics; +using OpenTK; namespace osu.Game.Rulesets.Objects.Drawables { @@ -229,6 +231,16 @@ namespace osu.Game.Rulesets.Objects.Drawables protected virtual void CheckForJudgements(bool userTriggered, double timeOffset) { } + + public void Shake() + { + this.MoveToOffset(new Vector2(8, 0), 20).Delay(20) + .MoveToOffset(-new Vector2(16, 0), 20).Delay(20) + .MoveToOffset(new Vector2(16, 0), 20).Delay(20) + .MoveToOffset(-new Vector2(16, 0), 20).Delay(20) + .MoveToOffset(new Vector2(16, 0), 20).Delay(20) + .MoveToOffset(-new Vector2(8, 0), 20); + } } public abstract class DrawableHitObject : DrawableHitObject