From 711b0193dbefbaec96859fbafa735b217f401e77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sun, 14 Sep 2014 22:36:54 +0200 Subject: GameScreen: HexMap is 11x9 not 10x8 --- core/src/ch/asynk/tankontank/screens/GameScreen.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit v1.1-2-g2b99