summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2018-10-18 16:53:01 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2018-10-18 16:53:01 +0200
commit53037c2e2bba89d358ad128db84f7b52b6beae5f (patch)
tree6c1dc50e35af69b31f11df15e92a71342f3bdf44
parent3b34d467feca5b255f598f77865208aeecdbb4c6 (diff)
downloadgdx-boardgame-53037c2e2bba89d358ad128db84f7b52b6beae5f.zip
gdx-boardgame-53037c2e2bba89d358ad128db84f7b52b6beae5f.tar.gz
add assets/hex-overlays
-rw-r--r--assets/build.gradle6
-rw-r--r--assets/data/hex-overlays.atlas76
-rw-r--r--assets/data/hex-overlays.pngbin0 -> 140121 bytes
-rw-r--r--assets/hex-overlays/00_fog.pngbin0 -> 10897 bytes
-rw-r--r--assets/hex-overlays/01_select.pngbin0 -> 16443 bytes
-rw-r--r--assets/hex-overlays/02_area.pngbin0 -> 11054 bytes
-rw-r--r--assets/hex-overlays/03_move.pngbin0 -> 6551 bytes
-rw-r--r--assets/hex-overlays/04_directions.pngbin0 -> 22508 bytes
-rw-r--r--assets/hex-overlays/05_exit.pngbin0 -> 5056 bytes
-rw-r--r--assets/hex-overlays/06_objective.pngbin0 -> 25007 bytes
-rw-r--r--assets/hex-overlays/07_hold_objective.pngbin0 -> 24803 bytes
-rw-r--r--assets/hex-overlays/08_objective_ge.pngbin0 -> 5861 bytes
-rw-r--r--assets/hex-overlays/09_objective_us.pngbin0 -> 12159 bytes
-rw-r--r--test/src/ch/asynk/gdx/boardgame/test/Assets.java3
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
new file mode 100644
index 0000000..5140c4b
--- /dev/null
+++ b/assets/data/hex-overlays.png
Binary files differ
diff --git a/assets/hex-overlays/00_fog.png b/assets/hex-overlays/00_fog.png
new file mode 100644
index 0000000..7d85d98
--- /dev/null
+++ b/assets/hex-overlays/00_fog.png
Binary files differ
diff --git a/assets/hex-overlays/01_select.png b/assets/hex-overlays/01_select.png
new file mode 100644
index 0000000..51d9974
--- /dev/null
+++ b/assets/hex-overlays/01_select.png
Binary files differ
diff --git a/assets/hex-overlays/02_area.png b/assets/hex-overlays/02_area.png
new file mode 100644
index 0000000..445e169
--- /dev/null
+++ b/assets/hex-overlays/02_area.png
Binary files differ
diff --git a/assets/hex-overlays/03_move.png b/assets/hex-overlays/03_move.png
new file mode 100644
index 0000000..ec975d6
--- /dev/null
+++ b/assets/hex-overlays/03_move.png
Binary files differ
diff --git a/assets/hex-overlays/04_directions.png b/assets/hex-overlays/04_directions.png
new file mode 100644
index 0000000..93d7331
--- /dev/null
+++ b/assets/hex-overlays/04_directions.png
Binary files differ
diff --git a/assets/hex-overlays/05_exit.png b/assets/hex-overlays/05_exit.png
new file mode 100644
index 0000000..02b9470
--- /dev/null
+++ b/assets/hex-overlays/05_exit.png
Binary files differ
diff --git a/assets/hex-overlays/06_objective.png b/assets/hex-overlays/06_objective.png
new file mode 100644
index 0000000..abcc43d
--- /dev/null
+++ b/assets/hex-overlays/06_objective.png
Binary files 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
--- /dev/null
+++ b/assets/hex-overlays/07_hold_objective.png
Binary files 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
--- /dev/null
+++ b/assets/hex-overlays/08_objective_ge.png
Binary files 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
--- /dev/null
+++ b/assets/hex-overlays/09_objective_us.png
Binary files 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);
}
}