Add explosion sounds
This commit is contained in:
parent
1a0378eb57
commit
5b63d677ff
@ -70,9 +70,11 @@ public class Turret implements Constants {
|
|||||||
if (listener != null) listener.shootComplete(false);
|
if (listener != null) listener.shootComplete(false);
|
||||||
} else if (shootInfo.isCollideOpponent(server, terrain)) {
|
} else if (shootInfo.isCollideOpponent(server, terrain)) {
|
||||||
shootState = false;
|
shootState = false;
|
||||||
|
Sound.EXPLOSION_2.play();
|
||||||
if (listener != null) listener.shootComplete(true);
|
if (listener != null) listener.shootComplete(true);
|
||||||
} else if (shootInfo.isCollideTerrain(terrain)) {
|
} else if (shootInfo.isCollideTerrain(terrain)) {
|
||||||
shootState = false;
|
shootState = false;
|
||||||
|
Sound.EXPLOSION_1.play();
|
||||||
terrain.destroyTerrain((int) shootInfo.x);
|
terrain.destroyTerrain((int) shootInfo.x);
|
||||||
if (listener != null) listener.shootComplete(false);
|
if (listener != null) listener.shootComplete(false);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user