Reduce delay on parallax

This commit is contained in:
Dean Herbert 2019-11-06 18:09:36 +09:00
parent 813d3a0bfa
commit ee4839b7e7
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ protected override void Update()
double elapsed = MathHelper.Clamp(Clock.ElapsedFrameTime, 0, 1000);
content.Position = Interpolation.ValueAt(elapsed, content.Position, offset, 0, 1000, Easing.OutQuint);
content.Position = Interpolation.ValueAt(elapsed, content.Position, offset, 0, 100, Easing.OutQuint);
content.Scale = Interpolation.ValueAt(elapsed, content.Scale, new Vector2(1 + System.Math.Abs(ParallaxAmount)), 0, 1000, Easing.OutQuint);
}