diff --git a/osu.Game/Graphics/Containers/ParallaxContainer.cs b/osu.Game/Graphics/Containers/ParallaxContainer.cs index f1d3067137..5cc8a4097b 100644 --- a/osu.Game/Graphics/Containers/ParallaxContainer.cs +++ b/osu.Game/Graphics/Containers/ParallaxContainer.cs @@ -36,11 +36,16 @@ namespace osu.Game.Graphics.Containers this.input = input; } + bool firstUpdate = true; + protected override void Update() { base.Update(); - content.MoveTo((ToLocalSpace(input.CurrentState.Mouse.NativeState.Position) - DrawSize / 2) * ParallaxAmount, 1000, EasingTypes.OutQuint); + + content.MoveTo((ToLocalSpace(input.CurrentState.Mouse.NativeState.Position) - DrawSize / 2) * ParallaxAmount, firstUpdate ? 0 : 1000, EasingTypes.OutQuint); content.Scale = new Vector2(1 + ParallaxAmount); + + firstUpdate = false; } } } diff --git a/osu.Game/Screens/Menu/Intro.cs b/osu.Game/Screens/Menu/Intro.cs index 5fd02e817d..ed7c0fa7e9 100644 --- a/osu.Game/Screens/Menu/Intro.cs +++ b/osu.Game/Screens/Menu/Intro.cs @@ -8,6 +8,7 @@ using osu.Framework.Audio.Track; using osu.Framework.GameModes; using osu.Framework.Graphics; using osu.Framework.Graphics.Transformations; +using osu.Game.Graphics.Containers; using osu.Game.Screens.Backgrounds; using OpenTK.Graphics; @@ -34,14 +35,21 @@ namespace osu.Game.Screens.Menu { Children = new Drawable[] { - logo = new OsuLogo + new ParallaxContainer { - Alpha = 0, - Triangles = false, - BlendingMode = BlendingMode.Additive, - Interactive = false, - Colour = Color4.DarkGray, - Ripple = false + ParallaxAmount = 0.01f, + Children = new Drawable[] + { + logo = new OsuLogo + { + Alpha = 0, + Triangles = false, + BlendingMode = BlendingMode.Additive, + Interactive = false, + Colour = Color4.DarkGray, + Ripple = false + } + } } }; }