From 9ea06ab37a515cd413974077a6c7c3c71590edb5 Mon Sep 17 00:00:00 2001 From: Jérémy Zurcher Date: Thu, 18 Oct 2018 11:05:42 +0200 Subject: AnimationsScre : use MoveAnimation.onTileChange(…) callback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/src/ch/asynk/gdx/boardgame/test/AnimationsScreen.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/src/ch') 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)); } -- cgit v1.2.3