Adjust "Floating Fruits" in line with layout changes

This commit is contained in:
Salman Ahmed 2024-02-14 01:03:21 +03:00
parent 62f5251b6e
commit 9b17020707
2 changed files with 3 additions and 1 deletions

View File

@ -21,7 +21,6 @@ public class CatchModFloatingFruits : Mod, IApplicableToDrawableRuleset<CatchHit
public void ApplyToDrawableRuleset(DrawableRuleset<CatchHitObject> drawableRuleset)
{
drawableRuleset.PlayfieldAdjustmentContainer.Scale = new Vector2(1, -1);
drawableRuleset.PlayfieldAdjustmentContainer.Y = 1 - drawableRuleset.PlayfieldAdjustmentContainer.Y;
}
}
}

View File

@ -20,6 +20,9 @@ public CatchPlayfieldAdjustmentContainer()
const float base_game_width = 1024f;
const float base_game_height = 768f;
Anchor = Anchor.Centre;
Origin = Anchor.Centre;
InternalChild = new Container
{
// This container limits vertical visibility of the playfield to ensure fairness between wide and tall resolutions (i.e. tall resolutions should not see more fruits).