summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2020-01-23 17:48:41 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2020-01-23 17:48:41 +0100
commit992f2e48cc75a30c1bbfb614e44390ce041f895a (patch)
tree7b28d9f39b4cb79fe164dc3169309ed9276061fe
parent0e50159336f836c631cdd32debb468ed336c4c3a (diff)
downloadgdx-boardgame-992f2e48cc75a30c1bbfb614e44390ce041f895a.zip
gdx-boardgame-992f2e48cc75a30c1bbfb614e44390ce041f895a.tar.gz
assets : add dot.png for adjacents test
-rw-r--r--assets/data/hex-overlays.atlas7
-rw-r--r--assets/data/hex-overlays.pngbin140573 -> 140994 bytes
-rw-r--r--assets/hex-overlays/dot.pngbin0 -> 1004 bytes
-rw-r--r--test/src/ch/asynk/gdx/boardgame/test/BoardScreen.java4
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
index b5abdc9..aff14c3 100644
--- a/assets/data/hex-overlays.png
+++ b/assets/data/hex-overlays.png
Binary files differ
diff --git a/assets/hex-overlays/dot.png b/assets/hex-overlays/dot.png
new file mode 100644
index 0000000..e6093bd
--- /dev/null
+++ b/assets/hex-overlays/dot.png
Binary files differ
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) {