hitColor colored beam effects. (#3471)
* hitColor colored beam effects. * Same with lasers * fix
This commit is contained in:
@@ -418,6 +418,16 @@ public class Fx{
|
||||
Fill.circle(e.x + x, e.y + y, e.fout() * 2f);
|
||||
});
|
||||
}),
|
||||
|
||||
hitLaserBlast = new Effect(12, e -> {
|
||||
color(e.color);
|
||||
stroke(e.fout() * 1.5f);
|
||||
|
||||
randLenVectors(e.id, 8, e.finpow() * 17f, e.rotation, 360f, (x, y) -> {
|
||||
float ang = Mathf.angle(x, y);
|
||||
lineAngle(e.x + x, e.y + y, ang, e.fout() * 4 + 1f);
|
||||
});
|
||||
}),
|
||||
|
||||
hitLancer = new Effect(12, e -> {
|
||||
color(Color.white);
|
||||
@@ -429,6 +439,16 @@ public class Fx{
|
||||
});
|
||||
}),
|
||||
|
||||
hitBeam = new Effect(12, e -> {
|
||||
color(e.color);
|
||||
stroke(e.fout() * 2f);
|
||||
|
||||
randLenVectors(e.id, 6, e.finpow() * 18f, e.rotation, 360f, (x, y) -> {
|
||||
float ang = Mathf.angle(x, y);
|
||||
lineAngle(e.x + x, e.y + y, ang, e.fout() * 4 + 1f);
|
||||
});
|
||||
}),
|
||||
|
||||
hitMeltdown = new Effect(12, e -> {
|
||||
color(Pal.meltdownHit);
|
||||
stroke(e.fout() * 2f);
|
||||
|
||||
Reference in New Issue
Block a user