From 53037c2e2bba89d358ad128db84f7b52b6beae5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 18 Oct 2018 16:53:01 +0200 Subject: add assets/hex-overlays --- assets/build.gradle | 6 ++ assets/data/hex-overlays.atlas | 76 +++++++++++++++++++++++ assets/data/hex-overlays.png | Bin 0 -> 140121 bytes assets/hex-overlays/00_fog.png | Bin 0 -> 10897 bytes assets/hex-overlays/01_select.png | Bin 0 -> 16443 bytes assets/hex-overlays/02_area.png | Bin 0 -> 11054 bytes assets/hex-overlays/03_move.png | Bin 0 -> 6551 bytes assets/hex-overlays/04_directions.png | Bin 0 -> 22508 bytes assets/hex-overlays/05_exit.png | Bin 0 -> 5056 bytes assets/hex-overlays/06_objective.png | Bin 0 -> 25007 bytes assets/hex-overlays/07_hold_objective.png | Bin 0 -> 24803 bytes assets/hex-overlays/08_objective_ge.png | Bin 0 -> 5861 bytes assets/hex-overlays/09_objective_us.png | Bin 0 -> 12159 bytes test/src/ch/asynk/gdx/boardgame/test/Assets.java | 3 + 14 files changed, 85 insertions(+) create mode 100644 assets/data/hex-overlays.atlas create mode 100644 assets/data/hex-overlays.png create mode 100644 assets/hex-overlays/00_fog.png create mode 100644 assets/hex-overlays/01_select.png create mode 100644 assets/hex-overlays/02_area.png create mode 100644 assets/hex-overlays/03_move.png create mode 100644 assets/hex-overlays/04_directions.png create mode 100644 assets/hex-overlays/05_exit.png create mode 100644 assets/hex-overlays/06_objective.png create mode 100644 assets/hex-overlays/07_hold_objective.png create mode 100644 assets/hex-overlays/08_objective_ge.png create mode 100644 assets/hex-overlays/09_objective_us.png diff --git a/assets/build.gradle b/assets/build.gradle index 6301d59..4b37476 100644 --- a/assets/build.gradle +++ b/assets/build.gradle @@ -14,6 +14,12 @@ task packLoading(type: JavaExec) { args = ['loading', 'data', 'loading'] } +task packHexOverlays(type: JavaExec) { + main = 'com.badlogic.gdx.tools.texturepacker.TexturePacker' + classpath = configurations.texturePacker + args = ['hex-overlays', 'data', 'hex-overlays'] +} + task build() { description "Builds the skin at various DPIs" } diff --git a/assets/data/hex-overlays.atlas b/assets/data/hex-overlays.atlas new file mode 100644 index 0000000..8b8fe58 --- /dev/null +++ b/assets/data/hex-overlays.atlas @@ -0,0 +1,76 @@ + +hex-overlays.png +size: 1024,512 +format: RGBA8888 +filter: Nearest,Nearest +repeat: none +00_fog + rotate: false + xy: 690, 271 + size: 190, 217 + orig: 190, 217 + offset: 0, 0 + index: -1 +01_select + rotate: false + xy: 2, 2 + size: 193, 223 + orig: 193, 223 + offset: 0, 0 + index: -1 +02_area + rotate: false + xy: 197, 8 + size: 190, 217 + orig: 190, 217 + offset: 0, 0 + index: -1 +03_move + rotate: false + xy: 882, 374 + size: 100, 114 + orig: 100, 114 + offset: 0, 0 + index: -1 +04_directions + rotate: false + xy: 2, 227 + size: 300, 261 + orig: 300, 261 + offset: 0, 0 + index: -1 +05_exit + rotate: false + xy: 544, 155 + size: 96, 110 + orig: 96, 110 + offset: 0, 0 + index: -1 +06_objective + rotate: false + xy: 304, 267 + size: 191, 221 + orig: 191, 221 + offset: 0, 0 + index: -1 +07_hold_objective + rotate: false + xy: 497, 267 + size: 191, 221 + orig: 191, 221 + offset: 0, 0 + index: -1 +08_objective_ge + rotate: false + xy: 389, 164 + size: 153, 101 + orig: 153, 101 + offset: 0, 0 + index: -1 +09_objective_us + rotate: false + xy: 389, 64 + size: 153, 98 + orig: 153, 98 + offset: 0, 0 + index: -1 diff --git a/assets/data/hex-overlays.png b/assets/data/hex-overlays.png new file mode 100644 index 0000000..5140c4b Binary files /dev/null and b/assets/data/hex-overlays.png differ diff --git a/assets/hex-overlays/00_fog.png b/assets/hex-overlays/00_fog.png new file mode 100644 index 0000000..7d85d98 Binary files /dev/null and b/assets/hex-overlays/00_fog.png differ diff --git a/assets/hex-overlays/01_select.png b/assets/hex-overlays/01_select.png new file mode 100644 index 0000000..51d9974 Binary files /dev/null and b/assets/hex-overlays/01_select.png differ diff --git a/assets/hex-overlays/02_area.png b/assets/hex-overlays/02_area.png new file mode 100644 index 0000000..445e169 Binary files /dev/null and b/assets/hex-overlays/02_area.png differ diff --git a/assets/hex-overlays/03_move.png b/assets/hex-overlays/03_move.png new file mode 100644 index 0000000..ec975d6 Binary files /dev/null and b/assets/hex-overlays/03_move.png differ diff --git a/assets/hex-overlays/04_directions.png b/assets/hex-overlays/04_directions.png new file mode 100644 index 0000000..93d7331 Binary files /dev/null and b/assets/hex-overlays/04_directions.png differ diff --git a/assets/hex-overlays/05_exit.png b/assets/hex-overlays/05_exit.png new file mode 100644 index 0000000..02b9470 Binary files /dev/null and b/assets/hex-overlays/05_exit.png differ diff --git a/assets/hex-overlays/06_objective.png b/assets/hex-overlays/06_objective.png new file mode 100644 index 0000000..abcc43d Binary files /dev/null and b/assets/hex-overlays/06_objective.png differ diff --git a/assets/hex-overlays/07_hold_objective.png b/assets/hex-overlays/07_hold_objective.png new file mode 100644 index 0000000..1d72fa5 Binary files /dev/null and b/assets/hex-overlays/07_hold_objective.png differ diff --git a/assets/hex-overlays/08_objective_ge.png b/assets/hex-overlays/08_objective_ge.png new file mode 100644 index 0000000..076be81 Binary files /dev/null and b/assets/hex-overlays/08_objective_ge.png differ diff --git a/assets/hex-overlays/09_objective_us.png b/assets/hex-overlays/09_objective_us.png new file mode 100644 index 0000000..1f4b754 Binary files /dev/null and b/assets/hex-overlays/09_objective_us.png differ diff --git a/test/src/ch/asynk/gdx/boardgame/test/Assets.java b/test/src/ch/asynk/gdx/boardgame/test/Assets.java index c976006..40520ed 100644 --- a/test/src/ch/asynk/gdx/boardgame/test/Assets.java +++ b/test/src/ch/asynk/gdx/boardgame/test/Assets.java @@ -23,6 +23,7 @@ public class Assets extends ch.asynk.gdx.boardgame.Assets public static final String FONT_25 = "size25.ttf"; public static final String PATCH = "ui-patch.png"; public static final String PANZER = "panzer.png"; + public static final String HEX_OVERLAYS = "hex-overlays.atlas"; private final FreeTypeFontLoaderParameter params20; private final FreeTypeFontLoaderParameter params25; @@ -68,6 +69,7 @@ public class Assets extends ch.asynk.gdx.boardgame.Assets load(PANZER, Texture.class); load(FONT_20, BitmapFont.class, params20); load(FONT_25, BitmapFont.class, params25); + load(HEX_OVERLAYS, TextureAtlas.class); } public void unloadApp() @@ -80,5 +82,6 @@ public class Assets extends ch.asynk.gdx.boardgame.Assets unload(PANZER); unload(FONT_20); unload(FONT_25); + unload(HEX_OVERLAYS); } } -- cgit v1.1-2-g2b99