1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-30 12:10:25 +08:00

Delay movement of ParallaxContainers slightly.

This commit is contained in:
Dean Herbert
2016-12-01 21:45:40 +09:00
Unverified
parent 2342a17dbc
commit 413138abe5
@@ -4,6 +4,7 @@ using osu.Framework.Input;
using OpenTK;
using osu.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics.Transformations;
namespace osu.Game.Graphics.Containers
{
@@ -38,7 +39,7 @@ namespace osu.Game.Graphics.Containers
protected override void Update()
{
base.Update();
content.Position = (ToLocalSpace(input.CurrentState.Mouse.NativeState.Position) - DrawSize / 2) * ParallaxAmount;
content.MoveTo((ToLocalSpace(input.CurrentState.Mouse.NativeState.Position) - DrawSize / 2) * ParallaxAmount, 1000, EasingTypes.OutQuint);
content.Scale = new Vector2(1 + ParallaxAmount);
}
}