summaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2020-01-21 14:13:51 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2020-01-21 14:13:51 +0100
commit2cf62a82b860f35fa823e1793fffdd9d1a3fb84e (patch)
tree99fa3efb21c0b92a72d7b3b4f607303baf0df815 /test/src
parent1efd76ea8405b52d6a4b23143ad29b123534f974 (diff)
downloadgdx-boardgame-2cf62a82b860f35fa823e1793fffdd9d1a3fb84e.zip
gdx-boardgame-2cf62a82b860f35fa823e1793fffdd9d1a3fb84e.tar.gz
AnimationsScreen : show Path
Diffstat (limited to 'test/src')
-rw-r--r--test/src/ch/asynk/gdx/boardgame/test/AnimationsScreen.java7
1 files changed, 6 insertions, 1 deletions
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));