From 1de75b67ef0def180bfec41ef672974cf0e286bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 9 Nov 2015 20:53:43 +0100 Subject: UnitDock: adapt scale to screen height --- core/src/ch/asynk/rustanddust/game/hud/UnitDock.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/ch/asynk/rustanddust/game/hud/UnitDock.java b/core/src/ch/asynk/rustanddust/game/hud/UnitDock.java index d9acb8d..41388ec 100644 --- a/core/src/ch/asynk/rustanddust/game/hud/UnitDock.java +++ b/core/src/ch/asynk/rustanddust/game/hud/UnitDock.java @@ -20,7 +20,7 @@ import ch.asynk.rustanddust.ui.Position; public class UnitDock extends Bg implements Animation { - private static final float SCALE = 0.4f; + private static float SCALE = 1.0f; private static final float STEP = 5f; private static final float BOUNCE_SPEED = 5; private static final float SCISSORS_BOTTOM = 50f; @@ -58,6 +58,7 @@ public class UnitDock extends Bg implements Animation this.visible = false; this.dx = 0f; this.dy = 0f; + SCALE = Math.max((Gdx.graphics.getHeight() * 0.0005f), 0.4f); } @Override -- cgit v1.1-2-g2b99