diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-30 18:58:56 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-30 18:58:56 +0100 |
commit | ad4495f907d33f72db66401886b4800471822de5 (patch) | |
tree | 0c254d0614664b75f1e39f9e065a28250d3350a2 /core/src/ch/asynk/tankontank/game | |
parent | 1e792286a831b99451195ed21d9537716c18cbd4 (diff) | |
download | RustAndDust-ad4495f907d33f72db66401886b4800471822de5.zip RustAndDust-ad4495f907d33f72db66401886b4800471822de5.tar.gz |
add DiceAnimation
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Map.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java index 71f29c7..3381518 100644 --- a/core/src/ch/asynk/tankontank/game/Map.java +++ b/core/src/ch/asynk/tankontank/game/Map.java @@ -16,6 +16,7 @@ import ch.asynk.tankontank.engine.Meteorology; 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.PromoteAnimation; import ch.asynk.tankontank.engine.gfx.animations.SoundAnimation; @@ -88,6 +89,7 @@ public abstract class Map extends Board super(game.factory, cfg, game.manager.get(textureName, Texture.class)); this.ctrl = game.ctrl; 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, @@ -121,6 +123,7 @@ public abstract class Map extends Board super.dispose(); clearAll(); moveSound.dispose(); + DiceAnimation.free(); PromoteAnimation.free(); ShotAnimation.free(); } |