diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2020-01-23 12:25:22 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2020-01-23 12:25:22 +0100 |
commit | 17e2865cbdb7abb92b3b0804275465c57ebf36c3 (patch) | |
tree | f925044b806542c914251bdd60f94eaf52879836 /test/src | |
parent | b0641f54015894e6a78aa648d44c7c019d5559a0 (diff) | |
download | gdx-boardgame-17e2865cbdb7abb92b3b0804275465c57ebf36c3.zip gdx-boardgame-17e2865cbdb7abb92b3b0804275465c57ebf36c3.tar.gz |
Piece : add angleCorrection, fix boards angles
Diffstat (limited to 'test/src')
-rw-r--r-- | test/src/ch/asynk/gdx/boardgame/test/AnimationsScreen.java | 1 | ||||
-rw-r--r-- | test/src/ch/asynk/gdx/boardgame/test/BoardScreen.java | 1 |
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)); } |