Reduce parallax effect during gameplay

This also cleans up some shared code in OsuScreen.
This commit is contained in:
Dean Herbert
2018-02-28 11:42:28 +09:00
parent 1a85186b6f
commit dd6cf1379e
3 changed files with 25 additions and 8 deletions

View File

@ -13,7 +13,9 @@ namespace osu.Game.Graphics.Containers
{
public class ParallaxContainer : Container, IRequireHighFrequencyMousePosition
{
public float ParallaxAmount = 0.02f;
public const float DEFAULT_PARALLAX_AMOUNT = 0.02f;
public float ParallaxAmount = DEFAULT_PARALLAX_AMOUNT;
private Bindable<bool> parallaxEnabled;