diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-03 14:59:49 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-03 14:59:49 +0100 |
commit | 3a406d85d5287d0ac3e8bc190ff4059b148e61f6 (patch) | |
tree | d4864457e49feadc2ef399a9f32061906ec85e8d /core/src/ch/asynk/tankontank/game | |
parent | c0e21f1e5d0a791b30aff89ac0401b4dad5ca881 (diff) | |
download | RustAndDust-3a406d85d5287d0ac3e8bc190ff4059b148e61f6.zip RustAndDust-3a406d85d5287d0ac3e8bc190ff4059b148e61f6.tar.gz |
ShotAnimation -> TankFireAnimation, shot.*. -> tank_fire*.*
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Map.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java index 74449f9..1693b75 100644 --- a/core/src/ch/asynk/tankontank/game/Map.java +++ b/core/src/ch/asynk/tankontank/game/Map.java @@ -18,7 +18,7 @@ import ch.asynk.tankontank.engine.PossiblePaths; import ch.asynk.tankontank.engine.gfx.Animation; import ch.asynk.tankontank.engine.gfx.animations.AnimationSequence; import ch.asynk.tankontank.engine.gfx.animations.DiceAnimation; -import ch.asynk.tankontank.engine.gfx.animations.ShotAnimation; +import ch.asynk.tankontank.engine.gfx.animations.TankFireAnimation; import ch.asynk.tankontank.engine.gfx.animations.PromoteAnimation; import ch.asynk.tankontank.engine.gfx.animations.SoundAnimation; import ch.asynk.tankontank.engine.gfx.animations.RunnableAnimation; @@ -93,11 +93,11 @@ public abstract class Map extends Board this.moveSound = game.manager.get("sounds/move.mp3", Sound.class); DiceAnimation.init(game.manager.get("data/dice.png", Texture.class), 16, 9, game.manager.get("sounds/dice.mp3", Sound.class)); PromoteAnimation.init(game.manager.get("data/hud.atlas", TextureAtlas.class), game.manager.get("sounds/promote.mp3", Sound.class)); - ShotAnimation.init( - game.manager.get("data/shots.png", Texture.class), 1, 7, + TankFireAnimation.init( + game.manager.get("data/tank_fire.png", Texture.class), 1, 7, game.manager.get("data/explosions.png", Texture.class), 16, 8, - game.manager.get("sounds/shot.mp3", Sound.class), - game.manager.get("sounds/short_shot.mp3", Sound.class), + game.manager.get("sounds/tank_fire.mp3", Sound.class), + game.manager.get("sounds/tank_fire_short.mp3", Sound.class), game.manager.get("sounds/explosion.mp3", Sound.class), game.manager.get("sounds/explosion_short.mp3", Sound.class) ); @@ -127,7 +127,7 @@ public abstract class Map extends Board moveSound.dispose(); DiceAnimation.free(); PromoteAnimation.free(); - ShotAnimation.free(); + TankFireAnimation.free(); } public void clearAll() @@ -402,12 +402,12 @@ public abstract class Map extends Board public void addEngagementAnimation(Unit target) { - ShotAnimation.resetSound(); + TankFireAnimation.resetSound(); Hex to = target.getHex(); for (Unit u : activatedUnits) { Hex from = u.getHex(); AnimationSequence seq = AnimationSequence.get(2); - seq.addAnimation(ShotAnimation.get(ctrl.cfg.fxVolume, (u.getWidth() / 2.f), from.getX(), from.getY(), to.getX(), to.getY())); + seq.addAnimation(TankFireAnimation.get(ctrl.cfg.fxVolume, (u.getWidth() / 2.f), from.getX(), from.getY(), to.getX(), to.getY())); seq.addAnimation(notifyDoneAnimation(target)); addAnimation(seq); } |