summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/game
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-26 23:35:26 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-26 23:35:26 +0100
commit777a0edf963f5ccc6854162fd178f282ff9edb47 (patch)
tree2525f9e845d7ac7fb93d1ad616a23435a8b1e8e1 /core/src/ch/asynk/tankontank/game
parenta24609378b2dd5013e78552225d059cf8de48079 (diff)
downloadRustAndDust-777a0edf963f5ccc6854162fd178f282ff9edb47.zip
RustAndDust-777a0edf963f5ccc6854162fd178f282ff9edb47.tar.gz
ShotAnimation: play only 1 long sound, reset in Map.animationsDone()
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r--core/src/ch/asynk/tankontank/game/Map.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java
index 78a7b20..1209652 100644
--- a/core/src/ch/asynk/tankontank/game/Map.java
+++ b/core/src/ch/asynk/tankontank/game/Map.java
@@ -59,7 +59,8 @@ public abstract class Map extends Board
ShotAnimation.init(
game.manager.get("data/shots.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/shot.mp3", Sound.class),
+ game.manager.get("sounds/short_shot.mp3", Sound.class)
);
setup();
@@ -189,6 +190,7 @@ public abstract class Map extends Board
public void animationsDone()
{
+ ShotAnimation.resetAll();
if (animationClosure != null)
addAnimation(animationClosure);
animationClosure = null;