From 992f2e48cc75a30c1bbfb614e44390ce041f895a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 23 Jan 2020 17:48:41 +0100 Subject: assets : add dot.png for adjacents test --- assets/data/hex-overlays.atlas | 7 +++++++ assets/data/hex-overlays.png | Bin 140573 -> 140994 bytes assets/hex-overlays/dot.png | Bin 0 -> 1004 bytes .../ch/asynk/gdx/boardgame/test/BoardScreen.java | 4 ++-- 4 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 assets/hex-overlays/dot.png 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 Binary files a/assets/data/hex-overlays.png and b/assets/data/hex-overlays.png differ diff --git a/assets/hex-overlays/dot.png b/assets/hex-overlays/dot.png new file mode 100644 index 0000000..e6093bd Binary files /dev/null and b/assets/hex-overlays/dot.png 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) { -- cgit v1.1-2-g2b99