mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 06:52:55 +08:00
Move shake duration to a constant
This commit is contained in:
parent
e3317b5145
commit
3d50050089
@ -62,13 +62,14 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
||||
protected void Shake()
|
||||
{
|
||||
const int shake_amount = 8;
|
||||
const int shake_duration = 20;
|
||||
|
||||
this.MoveToX(Position.X + shake_amount, 20).Then()
|
||||
.MoveToX(Position.X - shake_amount, 20).Then()
|
||||
.MoveToX(Position.X + shake_amount, 20).Then()
|
||||
.MoveToX(Position.X - shake_amount, 20).Then()
|
||||
.MoveToX(Position.X + shake_amount, 20).Then()
|
||||
.MoveToX(Position.X, 20);
|
||||
this.MoveToX(Position.X + shake_amount, shake_duration).Then()
|
||||
.MoveToX(Position.X - shake_amount, shake_duration).Then()
|
||||
.MoveToX(Position.X + shake_amount, shake_duration).Then()
|
||||
.MoveToX(Position.X - shake_amount, shake_duration).Then()
|
||||
.MoveToX(Position.X + shake_amount, shake_duration).Then()
|
||||
.MoveToX(Position.X, shake_duration);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user