summaryrefslogtreecommitdiffstats
path: root/test/src/ch/asynk/gdx/boardgame
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2020-01-23 12:25:22 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2020-01-23 12:25:22 +0100
commit17e2865cbdb7abb92b3b0804275465c57ebf36c3 (patch)
treef925044b806542c914251bdd60f94eaf52879836 /test/src/ch/asynk/gdx/boardgame
parentb0641f54015894e6a78aa648d44c7c019d5559a0 (diff)
downloadgdx-boardgame-17e2865cbdb7abb92b3b0804275465c57ebf36c3.zip
gdx-boardgame-17e2865cbdb7abb92b3b0804275465c57ebf36c3.tar.gz
Piece : add angleCorrection, fix boards angles
Diffstat (limited to 'test/src/ch/asynk/gdx/boardgame')
-rw-r--r--test/src/ch/asynk/gdx/boardgame/test/AnimationsScreen.java1
-rw-r--r--test/src/ch/asynk/gdx/boardgame/test/BoardScreen.java1
2 files changed, 2 insertions, 0 deletions
diff --git a/test/src/ch/asynk/gdx/boardgame/test/AnimationsScreen.java b/test/src/ch/asynk/gdx/boardgame/test/AnimationsScreen.java
index 501b00c..4013273 100644
--- a/test/src/ch/asynk/gdx/boardgame/test/AnimationsScreen.java
+++ b/test/src/ch/asynk/gdx/boardgame/test/AnimationsScreen.java
@@ -44,6 +44,7 @@ public class AnimationsScreen extends AbstractScreen
this.board = BoardFactory.getBoard(0, 0, BoardFactory.BoardType.HEX, 110, 50, 103, BoardFactory.BoardOrientation.VERTICAL);
this.camera = this.cam = new Camera(10, map.getWidth(), map.getHeight(), 1.0f, 0.3f, false);
+ Piece.angleCorrection = 90;
this.panzer = getPiece(app, 7, 4, Orientation.NW, app.assets.PANZER, 1f);
this.other0 = getPiece(app, 9, 5, Orientation.SW, app.assets.PANZER, 0f);
this.other1 = getPiece(app, 3, 1, Orientation.NE, app.assets.PANZER, 0f);
diff --git a/test/src/ch/asynk/gdx/boardgame/test/BoardScreen.java b/test/src/ch/asynk/gdx/boardgame/test/BoardScreen.java
index 8bf1d50..4fb9e6d 100644
--- a/test/src/ch/asynk/gdx/boardgame/test/BoardScreen.java
+++ b/test/src/ch/asynk/gdx/boardgame/test/BoardScreen.java
@@ -37,6 +37,7 @@ public class BoardScreen extends AbstractScreen
this.assets = assets;
this.pos = new Vector2();
this.v = new Vector2();
+ Piece.angleCorrection = 90;
this.panzer = new Piece(assets.getTexture(assets.PANZER));
}