Fracture impl
This commit is contained in:
@@ -1458,6 +1458,20 @@ public class Fx{
|
||||
});
|
||||
}),
|
||||
|
||||
randLifeSpark = new Effect(24f, e -> {
|
||||
color(Color.white, e.color, e.fin());
|
||||
stroke(e.fout() * 1.5f + 0.5f);
|
||||
|
||||
rand.setSeed(e.id);
|
||||
for(int i = 0; i < 15; i++){
|
||||
float ang = e.rotation + rand.range(9f), len = rand.random(90f * e.finpow());
|
||||
e.scaled(e.lifetime * rand.random(0.5f, 1f), p -> {
|
||||
v.trns(ang, len);
|
||||
lineAngle(e.x + v.x, e.y + v.y, ang, p.fout() * 7f + 0.5f);
|
||||
});
|
||||
}
|
||||
}),
|
||||
|
||||
//TODO just make it properly colored...
|
||||
tungstenSpark = new Effect(23f, e -> {
|
||||
color(Color.white, Pal.tungstenShot, e.fin());
|
||||
|
||||
Reference in New Issue
Block a user