summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2018-11-20 08:30:29 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2018-11-20 08:30:29 +0100
commit5ecd8d53992ca86a869aa5c7936ae6c4e4867158 (patch)
treee7f322ffb90e1d63a2bbbe5f394849f64bedc9fd /test
parent8d9fc76d27b219a989df0e948d1c7c8eeaa0a27d (diff)
downloadgdx-boardgame-5ecd8d53992ca86a869aa5c7936ae6c4e4867158.zip
gdx-boardgame-5ecd8d53992ca86a869aa5c7936ae6c4e4867158.tar.gz
AnimationsScreen : demo ShellFireAnimation configurations
Diffstat (limited to 'test')
-rw-r--r--test/src/ch/asynk/gdx/boardgame/test/AnimationsScreen.java9
1 files 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;
}