From 7b8cbae451a4e996ba0ed9a4fa89f1515a5417b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 13 Sep 2018 18:29:11 +0200 Subject: GameBoard : typo, I must invert w and h with HEX_H --- core/src/ch/asynk/zproject/GameBoard.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/ch/asynk/zproject/GameBoard.java b/core/src/ch/asynk/zproject/GameBoard.java index b855ff2..7ca3542 100644 --- a/core/src/ch/asynk/zproject/GameBoard.java +++ b/core/src/ch/asynk/zproject/GameBoard.java @@ -77,8 +77,8 @@ public class GameBoard implements Disposable, Touchable r = 90; dx = - ( this.map.getWidth() - this.map.getHeight() ) / 2; dy = - dx; - w = this.map.getWidth(); - h = this.map.getHeight(); + w = this.map.getHeight(); + h = this.map.getWidth(); this.board = BoardFactory.getBoard(BoardFactory.BoardType.HEX, 110, 103, 50, BoardFactory.BoardOrientation.HORIZONTAL); } -- cgit v1.1-2-g2b99