diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2018-10-18 16:53:01 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2018-10-18 16:53:01 +0200 |
commit | 53037c2e2bba89d358ad128db84f7b52b6beae5f (patch) | |
tree | 6c1dc50e35af69b31f11df15e92a71342f3bdf44 | |
parent | 3b34d467feca5b255f598f77865208aeecdbb4c6 (diff) | |
download | gdx-boardgame-53037c2e2bba89d358ad128db84f7b52b6beae5f.zip gdx-boardgame-53037c2e2bba89d358ad128db84f7b52b6beae5f.tar.gz |
add assets/hex-overlays
-rw-r--r-- | assets/build.gradle | 6 | ||||
-rw-r--r-- | assets/data/hex-overlays.atlas | 76 | ||||
-rw-r--r-- | assets/data/hex-overlays.png | bin | 0 -> 140121 bytes | |||
-rw-r--r-- | assets/hex-overlays/00_fog.png | bin | 0 -> 10897 bytes | |||
-rw-r--r-- | assets/hex-overlays/01_select.png | bin | 0 -> 16443 bytes | |||
-rw-r--r-- | assets/hex-overlays/02_area.png | bin | 0 -> 11054 bytes | |||
-rw-r--r-- | assets/hex-overlays/03_move.png | bin | 0 -> 6551 bytes | |||
-rw-r--r-- | assets/hex-overlays/04_directions.png | bin | 0 -> 22508 bytes | |||
-rw-r--r-- | assets/hex-overlays/05_exit.png | bin | 0 -> 5056 bytes | |||
-rw-r--r-- | assets/hex-overlays/06_objective.png | bin | 0 -> 25007 bytes | |||
-rw-r--r-- | assets/hex-overlays/07_hold_objective.png | bin | 0 -> 24803 bytes | |||
-rw-r--r-- | assets/hex-overlays/08_objective_ge.png | bin | 0 -> 5861 bytes | |||
-rw-r--r-- | assets/hex-overlays/09_objective_us.png | bin | 0 -> 12159 bytes | |||
-rw-r--r-- | test/src/ch/asynk/gdx/boardgame/test/Assets.java | 3 |
14 files changed, 85 insertions, 0 deletions
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 Binary files differnew file mode 100644 index 0000000..5140c4b --- /dev/null +++ b/assets/data/hex-overlays.png diff --git a/assets/hex-overlays/00_fog.png b/assets/hex-overlays/00_fog.png Binary files differnew file mode 100644 index 0000000..7d85d98 --- /dev/null +++ b/assets/hex-overlays/00_fog.png diff --git a/assets/hex-overlays/01_select.png b/assets/hex-overlays/01_select.png Binary files differnew file mode 100644 index 0000000..51d9974 --- /dev/null +++ b/assets/hex-overlays/01_select.png diff --git a/assets/hex-overlays/02_area.png b/assets/hex-overlays/02_area.png Binary files differnew file mode 100644 index 0000000..445e169 --- /dev/null +++ b/assets/hex-overlays/02_area.png diff --git a/assets/hex-overlays/03_move.png b/assets/hex-overlays/03_move.png Binary files differnew file mode 100644 index 0000000..ec975d6 --- /dev/null +++ b/assets/hex-overlays/03_move.png diff --git a/assets/hex-overlays/04_directions.png b/assets/hex-overlays/04_directions.png Binary files differnew file mode 100644 index 0000000..93d7331 --- /dev/null +++ b/assets/hex-overlays/04_directions.png diff --git a/assets/hex-overlays/05_exit.png b/assets/hex-overlays/05_exit.png Binary files differnew file mode 100644 index 0000000..02b9470 --- /dev/null +++ b/assets/hex-overlays/05_exit.png diff --git a/assets/hex-overlays/06_objective.png b/assets/hex-overlays/06_objective.png Binary files differnew file mode 100644 index 0000000..abcc43d --- /dev/null +++ b/assets/hex-overlays/06_objective.png diff --git a/assets/hex-overlays/07_hold_objective.png b/assets/hex-overlays/07_hold_objective.png Binary files differnew file mode 100644 index 0000000..1d72fa5 --- /dev/null +++ b/assets/hex-overlays/07_hold_objective.png diff --git a/assets/hex-overlays/08_objective_ge.png b/assets/hex-overlays/08_objective_ge.png Binary files differnew file mode 100644 index 0000000..076be81 --- /dev/null +++ b/assets/hex-overlays/08_objective_ge.png diff --git a/assets/hex-overlays/09_objective_us.png b/assets/hex-overlays/09_objective_us.png Binary files differnew file mode 100644 index 0000000..1f4b754 --- /dev/null +++ b/assets/hex-overlays/09_objective_us.png 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); } } |