diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-11-09 20:53:43 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-11-09 20:53:43 +0100 |
commit | 1de75b67ef0def180bfec41ef672974cf0e286bc (patch) | |
tree | 3a64426c18fa76981c07d0d88ab22953aa83e6f4 /core/src | |
parent | 8426a0e8b89e02e9358a2a3c95aaee7de598191b (diff) | |
download | RustAndDust-1de75b67ef0def180bfec41ef672974cf0e286bc.zip RustAndDust-1de75b67ef0def180bfec41ef672974cf0e286bc.tar.gz |
UnitDock: adapt scale to screen height
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/hud/UnitDock.java | 3 |
1 files changed, 2 insertions, 1 deletions
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 |