summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r--core/src/ch/asynk/tankontank/game/Hud.java4
-rw-r--r--core/src/ch/asynk/tankontank/game/Player.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Hud.java b/core/src/ch/asynk/tankontank/game/Hud.java
index 2b40229..ef95a22 100644
--- a/core/src/ch/asynk/tankontank/game/Hud.java
+++ b/core/src/ch/asynk/tankontank/game/Hud.java
@@ -55,8 +55,8 @@ public class Hud implements Disposable
bg = new Bg(atlas.findRegion("disabled"));
msg = new Msg(game.skin.getFont("default-font"), atlas.findRegion("disabled"));
- ctrl.player().setTopLeft(Gdx.graphics.getHeight(), OFFSET);
- ctrl.opponent().setTopLeft(Gdx.graphics.getHeight(), OFFSET);
+ ctrl.player().setTopLeft(OFFSET, (Gdx.graphics.getHeight() - OFFSET));
+ ctrl.opponent().setTopLeft(OFFSET, (Gdx.graphics.getHeight() - OFFSET));
}
@Override
diff --git a/core/src/ch/asynk/tankontank/game/Player.java b/core/src/ch/asynk/tankontank/game/Player.java
index b9bba70..d63a3f9 100644
--- a/core/src/ch/asynk/tankontank/game/Player.java
+++ b/core/src/ch/asynk/tankontank/game/Player.java
@@ -153,9 +153,9 @@ public class Player implements Drawable, Disposable
return flag.contains(x, y);
}
- public void setTopLeft(float height, float offset)
+ public void setTopLeft(float x, float y)
{
- flag.setPosition(offset, (height - flag.getHeight() - offset));
+ flag.setPosition(x, (y - flag.getHeight()));
}
public Iterator<Pawn> unitIterator()