diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-14 22:36:54 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-14 22:36:54 +0200 |
commit | 711b0193dbefbaec96859fbafa735b217f401e77 (patch) | |
tree | 809009e68da816caef94c5b63d19479f18cd6ea3 /core/src | |
parent | 0602d795f427652b5059269656e73a861b7091ac (diff) | |
download | RustAndDust-711b0193dbefbaec96859fbafa735b217f401e77.zip RustAndDust-711b0193dbefbaec96859fbafa735b217f401e77.tar.gz |
GameScreen: HexMap is 11x9 not 10x8
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/tankontank/screens/GameScreen.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/screens/GameScreen.java b/core/src/ch/asynk/tankontank/screens/GameScreen.java index 1206950..5f185fe 100644 --- a/core/src/ch/asynk/tankontank/screens/GameScreen.java +++ b/core/src/ch/asynk/tankontank/screens/GameScreen.java @@ -50,7 +50,6 @@ public class GameScreen extends AbstractScreen { super(game); - map = new HexMap(10, 8, game.manager.get("images/map_a.png", Texture.class)); fps = new Label("FPS: 0", game.skin); camInfo = new Label("", game.skin); cellInfo = new Label("", game.skin); @@ -58,6 +57,8 @@ public class GameScreen extends AbstractScreen camInfo.setPosition( 10, Gdx.graphics.getHeight() - 50); cellInfo.setPosition( 10, Gdx.graphics.getHeight() - 70); + map = new HexMap(11, 9, game.manager.get("images/map_a.png", Texture.class)); + cam = new OrthographicCamera(); cam.setToOrtho(false); // cam.position.set((map.getWidth()/2), (map.getHeight()/2), 0); |