Better leg unit death explosion

This commit is contained in:
Anuken
2022-02-01 23:21:57 -05:00
parent 69f59ff803
commit a138b7b9a8
9 changed files with 65 additions and 19 deletions
+16 -1
View File
@@ -2360,5 +2360,20 @@ public class Fx{
}
Lines.endLine();
}).followParent(false).rotWithParent(false);
}).followParent(false).rotWithParent(false),
legDestroy = new Effect(90f, 100f, e -> {
if(!(e.data instanceof LegDestroyData data)) return;
rand.setSeed(e.id);
e.lifetime = rand.random(70f, 130f);
Tmp.v1.trns(rand.random(360f), rand.random(data.region.width / 8f) * e.finpow());
float ox = Tmp.v1.x, oy = Tmp.v1.y;
alpha(e.foutpowdown());
stroke(data.region.height * scl);
line(data.region, data.a.x + ox, data.a.y + oy, data.b.x + ox, data.b.y + oy, false);
}).layer(Layer.groundUnit + 5f);
}
-1
View File
@@ -52,7 +52,6 @@ public class Planets{
landCloudColor = Color.valueOf("ed6542");
atmosphereColor = Color.valueOf("f07218");
defaultEnv = Env.scorching | Env.terrestrial;
drillOverlay = Blocks.air;
startSector = 10;
atmosphereRadIn = 0.02f;
atmosphereRadOut = 0.3f;