diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2018-11-15 14:48:59 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2018-11-15 14:48:59 +0100 |
commit | a490b726204a1ce6a27e24f331f12ea563342cb0 (patch) | |
tree | 10cf1e3dffa15519a9d53a290b7beb4706c8d053 /test/src/ch | |
parent | 4a8646dbe1e429e1abd5c5e11cf14522a4561a7a (diff) | |
download | gdx-boardgame-a490b726204a1ce6a27e24f331f12ea563342cb0.zip gdx-boardgame-a490b726204a1ce6a27e24f331f12ea563342cb0.tar.gz |
Animation : add public default void draw(Batch) { }
animations draw there internal textures,
apply modifications on pieces,
but do not draw them themselves.
Diffstat (limited to 'test/src/ch')
-rw-r--r-- | test/src/ch/asynk/gdx/boardgame/test/AnimationsScreen.java | 5 |
1 files changed, 3 insertions, 2 deletions
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(); } |