New WIP turret

This commit is contained in:
Anuken 2022-07-04 20:23:05 -04:00
parent 5b1d1a2ce4
commit 5ce61b863b
22 changed files with 158 additions and 23 deletions

View file

@ -1611,6 +1611,19 @@ public class Fx{
}
}),
shootSmokeRavage = new Effect(70f, e -> {
rand.setSeed(e.id);
for(int i = 0; i < 13; i++){
float a = e.rotation + rand.range(30f);
v.trns(a, rand.random(e.finpow() * 50f));
e.scaled(e.lifetime * rand.random(0.3f, 1f), b -> {
color(e.color);
Lines.stroke(b.fout() * 3f + 0.5f);
Lines.lineAngle(e.x + v.x, e.y + v.y, a, b.fout() * 8f + 0.4f);
});
}
}),
shootSmokeMissile = new Effect(130f, 300f, e -> {
color(Pal.redLight);
alpha(0.5f);