summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--assets/data/hex-overlays.atlas34
-rw-r--r--assets/data/hex-overlays.pngbin140121 -> 140573 bytes
-rw-r--r--assets/hex-overlays/10_path.pngbin0 -> 2940 bytes
-rw-r--r--assets/hex-overlays/11_path.pngbin0 -> 2940 bytes
-rw-r--r--test/src/ch/asynk/gdx/boardgame/test/AnimationsScreen.java7
5 files changed, 30 insertions, 11 deletions
diff --git a/assets/data/hex-overlays.atlas b/assets/data/hex-overlays.atlas
index 8b8fe58..6d130d7 100644
--- a/assets/data/hex-overlays.atlas
+++ b/assets/data/hex-overlays.atlas
@@ -6,71 +6,85 @@ filter: Nearest,Nearest
repeat: none
00_fog
rotate: false
- xy: 690, 271
+ xy: 690, 289
size: 190, 217
orig: 190, 217
offset: 0, 0
index: -1
01_select
rotate: false
- xy: 2, 2
+ xy: 2, 20
size: 193, 223
orig: 193, 223
offset: 0, 0
index: -1
02_area
rotate: false
- xy: 197, 8
+ xy: 197, 26
size: 190, 217
orig: 190, 217
offset: 0, 0
index: -1
03_move
rotate: false
- xy: 882, 374
+ xy: 882, 392
size: 100, 114
orig: 100, 114
offset: 0, 0
index: -1
04_directions
rotate: false
- xy: 2, 227
+ xy: 2, 245
size: 300, 261
orig: 300, 261
offset: 0, 0
index: -1
05_exit
rotate: false
- xy: 544, 155
+ xy: 544, 173
size: 96, 110
orig: 96, 110
offset: 0, 0
index: -1
06_objective
rotate: false
- xy: 304, 267
+ xy: 304, 285
size: 191, 221
orig: 191, 221
offset: 0, 0
index: -1
07_hold_objective
rotate: false
- xy: 497, 267
+ xy: 497, 285
size: 191, 221
orig: 191, 221
offset: 0, 0
index: -1
08_objective_ge
rotate: false
- xy: 389, 164
+ xy: 389, 182
size: 153, 101
orig: 153, 101
offset: 0, 0
index: -1
09_objective_us
rotate: false
- xy: 389, 64
+ xy: 389, 82
size: 153, 98
orig: 153, 98
offset: 0, 0
index: -1
+10_path
+ rotate: false
+ xy: 2, 2
+ size: 190, 16
+ orig: 190, 16
+ offset: 0, 0
+ index: -1
+11_path
+ rotate: false
+ xy: 2, 2
+ size: 190, 16
+ orig: 190, 16
+ offset: 0, 0
+ index: -1
diff --git a/assets/data/hex-overlays.png b/assets/data/hex-overlays.png
index 5140c4b..b5abdc9 100644
--- a/assets/data/hex-overlays.png
+++ b/assets/data/hex-overlays.png
Binary files differ
diff --git a/assets/hex-overlays/10_path.png b/assets/hex-overlays/10_path.png
new file mode 100644
index 0000000..4364e89
--- /dev/null
+++ b/assets/hex-overlays/10_path.png
Binary files differ
diff --git a/assets/hex-overlays/11_path.png b/assets/hex-overlays/11_path.png
new file mode 100644
index 0000000..4364e89
--- /dev/null
+++ b/assets/hex-overlays/11_path.png
Binary files differ
diff --git a/test/src/ch/asynk/gdx/boardgame/test/AnimationsScreen.java b/test/src/ch/asynk/gdx/boardgame/test/AnimationsScreen.java
index 0990d7b..501b00c 100644
--- a/test/src/ch/asynk/gdx/boardgame/test/AnimationsScreen.java
+++ b/test/src/ch/asynk/gdx/boardgame/test/AnimationsScreen.java
@@ -56,6 +56,7 @@ public class AnimationsScreen extends AbstractScreen
cam.centerOnWorld();
path = buildPath(app);
+ path.show(10, 11);
AnimationBatch batch;
FireAnimation.register("mgun0", 11, 0.1f, 0.7f, 30f, 150f, 1.3f, 0f,
@@ -82,7 +83,11 @@ public class AnimationsScreen extends AbstractScreen
Tile to = path.to();
System.err.println(String.format("%s -> %s", from, to));
from.enableOverlay(2, false);
- if (to != null) to.enableOverlay(2, true);
+ from.enableOverlay(10, false);
+ if (to != null) {
+ to.enableOverlay(2, true);
+ to.enableOverlay(11, false);
+ }
}));
batch = AnimationBatch.obtain(3);
batch.add(FadeAnimation.obtain(other0, 0f, 1f, .5f));