diff options
-rw-r--r-- | core/src/ch/asynk/creepingarmor/screens/GameCamera.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/creepingarmor/screens/GameCamera.java b/core/src/ch/asynk/creepingarmor/screens/GameCamera.java index 33ee264..9392c5d 100644 --- a/core/src/ch/asynk/creepingarmor/screens/GameCamera.java +++ b/core/src/ch/asynk/creepingarmor/screens/GameCamera.java @@ -70,7 +70,7 @@ public class GameCamera extends OrthographicCamera window.y = ((screenHeight - window.height) / 2f); viewportHeight = (viewportWidth * (window.height / window.width)); hud.x = hudCorrection; - hud.y = (hud.x / viewportWidth * viewportHeight); + hud.y = (hud.x * viewportHeight / viewportWidth); } hud.width = (window.width - (2 * hud.x)); |