mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-12-05 18:30:22 -08:00
WIP tank sounds
This commit is contained in:
parent
06943d822d
commit
65c63c292e
6 changed files with 19 additions and 1 deletions
BIN
core/assets/sounds/tankMove.ogg
Normal file
BIN
core/assets/sounds/tankMove.ogg
Normal file
Binary file not shown.
BIN
core/assets/sounds/tankMoveHeavy.ogg
Normal file
BIN
core/assets/sounds/tankMoveHeavy.ogg
Normal file
Binary file not shown.
BIN
core/assets/sounds/tankMoveSmall.ogg
Normal file
BIN
core/assets/sounds/tankMoveSmall.ogg
Normal file
Binary file not shown.
|
|
@ -2590,6 +2590,9 @@ public class UnitTypes{
|
||||||
treadRects = new Rect[]{new Rect(12 - 32f, 7 - 32f, 14, 51)};
|
treadRects = new Rect[]{new Rect(12 - 32f, 7 - 32f, 14, 51)};
|
||||||
researchCostMultiplier = 0f;
|
researchCostMultiplier = 0f;
|
||||||
|
|
||||||
|
tankMoveVolume *= 0.6f;
|
||||||
|
tankMoveSound = Sounds.tankMoveSmall;
|
||||||
|
|
||||||
weapons.add(new Weapon("stell-weapon"){{
|
weapons.add(new Weapon("stell-weapon"){{
|
||||||
shootSound = Sounds.shootStell;
|
shootSound = Sounds.shootStell;
|
||||||
layerOffset = 0.0001f;
|
layerOffset = 0.0001f;
|
||||||
|
|
@ -2633,6 +2636,9 @@ public class UnitTypes{
|
||||||
treadRects = new Rect[]{new Rect(17 - 96f/2f, 10 - 96f/2f, 19, 76)};
|
treadRects = new Rect[]{new Rect(17 - 96f/2f, 10 - 96f/2f, 19, 76)};
|
||||||
researchCostMultiplier = 0f;
|
researchCostMultiplier = 0f;
|
||||||
|
|
||||||
|
tankMoveVolume *= 0.75f;
|
||||||
|
tankMoveSound = Sounds.tankMove;
|
||||||
|
|
||||||
weapons.add(new Weapon("locus-weapon"){{
|
weapons.add(new Weapon("locus-weapon"){{
|
||||||
shootSound = Sounds.bolt;
|
shootSound = Sounds.bolt;
|
||||||
layerOffset = 0.0001f;
|
layerOffset = 0.0001f;
|
||||||
|
|
@ -2786,6 +2792,9 @@ public class UnitTypes{
|
||||||
immunities.addAll(StatusEffects.burning, StatusEffects.melting);
|
immunities.addAll(StatusEffects.burning, StatusEffects.melting);
|
||||||
treadRects = new Rect[]{new Rect(22 - 154f/2f, 16 - 154f/2f, 28, 130)};
|
treadRects = new Rect[]{new Rect(22 - 154f/2f, 16 - 154f/2f, 28, 130)};
|
||||||
|
|
||||||
|
tankMoveVolume *= 1.25f;
|
||||||
|
tankMoveSound = Sounds.tankMoveHeavy;
|
||||||
|
|
||||||
weapons.add(new Weapon("vanquish-weapon"){{
|
weapons.add(new Weapon("vanquish-weapon"){{
|
||||||
shootSound = Sounds.mediumCannon;
|
shootSound = Sounds.mediumCannon;
|
||||||
layerOffset = 0.0001f;
|
layerOffset = 0.0001f;
|
||||||
|
|
@ -2884,6 +2893,9 @@ public class UnitTypes{
|
||||||
floorMultiplier = 0.3f;
|
floorMultiplier = 0.3f;
|
||||||
immunities.addAll(StatusEffects.burning, StatusEffects.melting);
|
immunities.addAll(StatusEffects.burning, StatusEffects.melting);
|
||||||
|
|
||||||
|
tankMoveVolume *= 1.5f;
|
||||||
|
tankMoveSound = Sounds.tankMoveHeavy;
|
||||||
|
|
||||||
float xo = 231f/2f, yo = 231f/2f;
|
float xo = 231f/2f, yo = 231f/2f;
|
||||||
treadRects = new Rect[]{new Rect(27 - xo, 152 - yo, 56, 73), new Rect(24 - xo, 51 - 9 - yo, 29, 17), new Rect(59 - xo, 18 - 9 - yo, 39, 19)};
|
treadRects = new Rect[]{new Rect(27 - xo, 152 - yo, 56, 73), new Rect(24 - xo, 51 - 9 - yo, 29, 17), new Rect(59 - xo, 18 - 9 - yo, 39, 19)};
|
||||||
|
|
||||||
|
|
@ -3295,7 +3307,7 @@ public class UnitTypes{
|
||||||
|
|
||||||
weapons.add(new Weapon("anthicus-weapon"){{
|
weapons.add(new Weapon("anthicus-weapon"){{
|
||||||
shootSound = Sounds.missileLarge;
|
shootSound = Sounds.missileLarge;
|
||||||
shootSoundVolume = 0.8f;
|
shootSoundVolume = 0.65f;
|
||||||
x = 29f / 4f;
|
x = 29f / 4f;
|
||||||
y = -11f / 4f;
|
y = -11f / 4f;
|
||||||
shootY = 1.5f;
|
shootY = 1.5f;
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,8 @@ abstract class TankComp implements Posc, Hitboxc, Unitc, ElevationMovec{
|
||||||
|
|
||||||
treadEffectTime = 0f;
|
treadEffectTime = 0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
control.sound.loop(type.tankMoveSound, this, type.tankMoveVolume);
|
||||||
}
|
}
|
||||||
|
|
||||||
lastDeepFloor = null;
|
lastDeepFloor = null;
|
||||||
|
|
|
||||||
|
|
@ -306,6 +306,10 @@ public class UnitType extends UnlockableContent implements Senseable{
|
||||||
public float stepSoundVolume = 0.5f;
|
public float stepSoundVolume = 0.5f;
|
||||||
/** base pitch of step sound */
|
/** base pitch of step sound */
|
||||||
public float stepSoundPitch = 1f, stepSoundPitchRange = 0.1f;
|
public float stepSoundPitch = 1f, stepSoundPitchRange = 0.1f;
|
||||||
|
/** sound looped when tank moves */
|
||||||
|
public Sound tankMoveSound = Sounds.tankMove;
|
||||||
|
/** volume of tank move sfx */
|
||||||
|
public float tankMoveVolume = 0.5f;
|
||||||
/** effect that this unit emits when falling */
|
/** effect that this unit emits when falling */
|
||||||
public Effect fallEffect = Fx.fallSmoke;
|
public Effect fallEffect = Fx.fallSmoke;
|
||||||
/** effect created at engine when unit falls. */
|
/** effect created at engine when unit falls. */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue