diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2020-01-23 17:48:41 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2020-01-23 17:48:41 +0100 |
commit | 992f2e48cc75a30c1bbfb614e44390ce041f895a (patch) | |
tree | 7b28d9f39b4cb79fe164dc3169309ed9276061fe | |
parent | 0e50159336f836c631cdd32debb468ed336c4c3a (diff) | |
download | gdx-boardgame-992f2e48cc75a30c1bbfb614e44390ce041f895a.zip gdx-boardgame-992f2e48cc75a30c1bbfb614e44390ce041f895a.tar.gz |
assets : add dot.png for adjacents test
-rw-r--r-- | assets/data/hex-overlays.atlas | 7 | ||||
-rw-r--r-- | assets/data/hex-overlays.png | bin | 140573 -> 140994 bytes | |||
-rw-r--r-- | assets/hex-overlays/dot.png | bin | 0 -> 1004 bytes | |||
-rw-r--r-- | test/src/ch/asynk/gdx/boardgame/test/BoardScreen.java | 4 |
4 files changed, 9 insertions, 2 deletions
diff --git a/assets/data/hex-overlays.atlas b/assets/data/hex-overlays.atlas index 6d130d7..c0bed02 100644 --- a/assets/data/hex-overlays.atlas +++ b/assets/data/hex-overlays.atlas @@ -88,3 +88,10 @@ repeat: none orig: 190, 16 offset: 0, 0 index: -1 +dot + rotate: false + xy: 882, 366 + size: 24, 24 + orig: 24, 24 + offset: 0, 0 + index: -1 diff --git a/assets/data/hex-overlays.png b/assets/data/hex-overlays.png Binary files differindex b5abdc9..aff14c3 100644 --- a/assets/data/hex-overlays.png +++ b/assets/data/hex-overlays.png diff --git a/assets/hex-overlays/dot.png b/assets/hex-overlays/dot.png Binary files differnew file mode 100644 index 0000000..e6093bd --- /dev/null +++ b/assets/hex-overlays/dot.png diff --git a/test/src/ch/asynk/gdx/boardgame/test/BoardScreen.java b/test/src/ch/asynk/gdx/boardgame/test/BoardScreen.java index 46b9d82..086133d 100644 --- a/test/src/ch/asynk/gdx/boardgame/test/BoardScreen.java +++ b/test/src/ch/asynk/gdx/boardgame/test/BoardScreen.java @@ -90,13 +90,13 @@ public class BoardScreen extends AbstractScreen { for (Tile tile : board.getAdjacents()) { if (tile != null) - tile.enableOverlay(2, false); + tile.enableOverlay(12, false); } board.buildAdjacents((int)v.x, (int)v.y, this::getTile); for (Tile tile : board.getAdjacents()) { if (tile != null) { tilesToDraw.add(tile); - tile.enableOverlay(2, true); + tile.enableOverlay(12, true); } } for (Tile tile : tilesToDraw) { |