mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 21:02:54 +08:00
Adjust transform to look better
This commit is contained in:
parent
aa96d91762
commit
0ecbc5945f
@ -10,15 +10,15 @@ namespace osu.Game.Graphics.Containers
|
|||||||
{
|
{
|
||||||
public void Shake()
|
public void Shake()
|
||||||
{
|
{
|
||||||
const int shake_amount = 8;
|
const float shake_amount = 8;
|
||||||
const int shake_duration = 20;
|
const float shake_duration = 30;
|
||||||
|
|
||||||
this.MoveToX(shake_amount, shake_duration).Then()
|
this.MoveToX(shake_amount, shake_duration / 2, Easing.OutSine).Then()
|
||||||
.MoveToX(-shake_amount, shake_duration).Then()
|
.MoveToX(-shake_amount, shake_duration, Easing.InOutSine).Then()
|
||||||
.MoveToX(shake_amount, shake_duration).Then()
|
.MoveToX(shake_amount, shake_duration, Easing.InOutSine).Then()
|
||||||
.MoveToX(-shake_amount, shake_duration).Then()
|
.MoveToX(-shake_amount, shake_duration, Easing.InOutSine).Then()
|
||||||
.MoveToX(shake_amount, shake_duration).Then()
|
.MoveToX(shake_amount, shake_duration, Easing.InOutSine).Then()
|
||||||
.MoveToX(0, shake_duration);
|
.MoveToX(0, shake_duration / 2, Easing.InSine);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user