mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-12-06 02:40:23 -08:00
New WIP turret
This commit is contained in:
parent
5b1d1a2ce4
commit
5ce61b863b
22 changed files with 158 additions and 23 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue