More sound effects + core destruction sound

This commit is contained in:
Anuken
2025-12-06 23:14:08 -05:00
parent 65c63c292e
commit e255912156
19 changed files with 130 additions and 8 deletions
+3 -1
View File
@@ -2622,7 +2622,7 @@ public class Blocks{
powerProduction = 130f;
itemDuration = 140f;
ambientSound = Sounds.pulse;
ambientSoundVolume = 0.07f;
ambientSoundVolume = 0.08f;
liquidCapacity = 80f;
consumePower(25f);
@@ -6298,6 +6298,7 @@ public class Blocks{
beamWidth = 0.73f;
powerUse = 1f;
pulseRadius = 5f;
ambientSoundVolume = 0.9f;
}};
repairTurret = new RepairTurret("repair-turret"){{
@@ -6312,6 +6313,7 @@ public class Blocks{
coolantUse = 0.16f;
coolantMultiplier = 1.6f;
acceptCoolant = true;
ambientSoundVolume = 1.25f;
}};
//endregion
+30
View File
@@ -550,6 +550,36 @@ public class Fx{
}
}),
coreExplosion = new Effect(55f, 240f, e -> {
color(e.color);
stroke(e.fout() * 4f);
float circleRad = 6f + e.finpow() * 120f;
Lines.circle(e.x, e.y, circleRad);
stroke(e.fout() * 2.5f);
rand.setSeed(e.id);
for(int i = 0; i < 30; i++){
float angle = rand.random(360f);
float lenRand = rand.random(0.5f, 1f);
Lines.lineAngle(e.x, e.y, angle, e.foutpow() * 50f * rand.random(1f, 0.6f) + 2f, e.finpow() * 100f * lenRand + 6f);
}
stroke(e.fout() * 2f);
for(int i = 0; i < 30; i++){
float angle = rand.random(360f);
float lenRand = rand.random(0.5f, 1f);
float speed = rand.random(1f, 0.6f);
float fin = e.finpow() / rand.random(0.3f, 1f);
float fout = 1f - fin;
if(fin < 1f){
stroke(fout * 2f);
Lines.lineAngle(e.x, e.y, angle, Interp.pow3Out.apply(fin) * 80f * speed + 2f, fin * 100f * lenRand + 6f);
}
}
}),
smokeAoeCloud = new Effect(60f * 3f, 250f, e -> {
color(e.color, 0.65f);
+1 -1
View File
@@ -3307,7 +3307,7 @@ public class UnitTypes{
weapons.add(new Weapon("anthicus-weapon"){{
shootSound = Sounds.missileLarge;
shootSoundVolume = 0.65f;
shootSoundVolume = 0.5f;
x = 29f / 4f;
y = -11f / 4f;
shootY = 1.5f;