diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2018-09-13 18:29:11 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2018-09-13 18:29:11 +0200 |
commit | 7b8cbae451a4e996ba0ed9a4fa89f1515a5417b2 (patch) | |
tree | ca13f92cf4bbc920b6103dba744f5cb3b57d5c53 /core | |
parent | 94add775a5d1d65667b6786ecf81d0aaff12164e (diff) | |
download | gdx-boardgame-7b8cbae451a4e996ba0ed9a4fa89f1515a5417b2.zip gdx-boardgame-7b8cbae451a4e996ba0ed9a4fa89f1515a5417b2.tar.gz |
GameBoard : typo, I must invert w and h with HEX_H
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/zproject/GameBoard.java | 4 |
1 files 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); } |