From a490b726204a1ce6a27e24f331f12ea563342cb0 Mon Sep 17 00:00:00 2001 From: Jérémy Zurcher Date: Thu, 15 Nov 2018 14:48:59 +0100 Subject: Animation : add public default void draw(Batch) { } animations draw there internal textures, apply modifications on pieces, but do not draw them themselves. --- test/src/ch/asynk/gdx/boardgame/test/AnimationsScreen.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (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 9e7da45..f32ab9b 100644 --- a/test/src/ch/asynk/gdx/boardgame/test/AnimationsScreen.java +++ b/test/src/ch/asynk/gdx/boardgame/test/AnimationsScreen.java @@ -49,7 +49,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(DelayAnimation.obtain(1f)); animations.add(MoveAnimation.obtain(panzer, path, 2f, (p,path) -> { Tile from = path.from(); Tile to = path.to(); @@ -57,7 +57,7 @@ public class AnimationsScreen extends AbstractScreen from.enableOverlay(2, false); if (to != null) to.enableOverlay(2, true); })); - animations.add(DelayAnimation.obtain(panzer, 1f)); + animations.add(DelayAnimation.obtain(1f)); } private Path buildPath(final GdxBoardTest app) @@ -122,6 +122,7 @@ public class AnimationsScreen extends AbstractScreen for (int i = 0; i < path.size(); i++) { path.get(i).draw(batch); } + panzer.draw(batch); animations.draw(batch); batch.end(); } -- cgit v1.2.3