diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2018-10-18 11:05:42 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2018-10-18 11:05:42 +0200 |
commit | 9ea06ab37a515cd413974077a6c7c3c71590edb5 (patch) | |
tree | 6a3161fcf285dea044c3f9a206b079a054420ba9 /test/src/ch/asynk/gdx | |
parent | 02c69db7236f06d1e87055c4af541d051f932bab (diff) | |
download | gdx-boardgame-9ea06ab37a515cd413974077a6c7c3c71590edb5.zip gdx-boardgame-9ea06ab37a515cd413974077a6c7c3c71590edb5.tar.gz |
AnimationsScre : use MoveAnimation.onTileChange(…) callback
Diffstat (limited to 'test/src/ch/asynk/gdx')
-rw-r--r-- | test/src/ch/asynk/gdx/boardgame/test/AnimationsScreen.java | 2 |
1 files changed, 1 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 9c701e3..a675a82 100644 --- a/test/src/ch/asynk/gdx/boardgame/test/AnimationsScreen.java +++ b/test/src/ch/asynk/gdx/boardgame/test/AnimationsScreen.java @@ -47,7 +47,7 @@ public class AnimationsScreen extends AbstractScreen animations = AnimationSequence.obtain(10); animations.add(BounceAnimation.obtain(panzer, 2f, 3f, -1)); animations.add(DelayAnimation.obtain(panzer, 1f)); - animations.add(MoveAnimation.obtain(panzer, buildPath(), 2f)); + animations.add(MoveAnimation.obtain(panzer, buildPath(), 2f, (p,path) -> System.err.println(String.format("%s -> %s", path.from(), path.to())))); animations.add(DelayAnimation.obtain(panzer, 1f)); } |