From 5ecd8d53992ca86a869aa5c7936ae6c4e4867158 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= <jeremy@asynk.ch>
Date: Tue, 20 Nov 2018 08:30:29 +0100
Subject: AnimationsScreen : demo ShellFireAnimation configurations

---
 test/src/ch/asynk/gdx/boardgame/test/AnimationsScreen.java | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/test/src/ch/asynk/gdx/boardgame/test/AnimationsScreen.java b/test/src/ch/asynk/gdx/boardgame/test/AnimationsScreen.java
index 3f7d531..6fff822 100644
--- a/test/src/ch/asynk/gdx/boardgame/test/AnimationsScreen.java
+++ b/test/src/ch/asynk/gdx/boardgame/test/AnimationsScreen.java
@@ -53,7 +53,10 @@ public class AnimationsScreen extends AbstractScreen
         path = buildPath(app);
 
         AnimationBatch batch;
-        ShellFireAnimation.register("tankShell", 1f, 66f, 400f, 1.3f, 1f,
+        ShellFireAnimation.register("cfg0", 1f, 66f, 400f, 1.3f, 1f,
+                app.assets.getTexture(app.assets.SHELL_FIRE), 1, 8,
+                app.assets.getTexture(app.assets.EXPLOSIONS), 16, 8);
+        ShellFireAnimation.register("cfg1", .5f, 11f, 500f, .8f, 1f,
                 app.assets.getTexture(app.assets.SHELL_FIRE), 1, 8,
                 app.assets.getTexture(app.assets.EXPLOSIONS), 16, 8);
 
@@ -122,8 +125,8 @@ public class AnimationsScreen extends AbstractScreen
     private AnimationBatch getFireAnimationBatch()
     {
         AnimationBatch batch = AnimationBatch.obtain(2);
-        batch.add(ShellFireAnimation.obtain("tankShell", other0, panzer));
-        batch.add(ShellFireAnimation.obtain("tankShell", other1, panzer));
+        batch.add(ShellFireAnimation.obtain("cfg0", other0, panzer));
+        batch.add(ShellFireAnimation.obtain("cfg1", other1, panzer));
         return batch;
     }
 
-- 
cgit v1.1-2-g2b99