Surge crucible effects
This commit is contained in:
@@ -12,7 +12,7 @@ import mindustry.game.*;
|
||||
import mindustry.gen.*;
|
||||
import mindustry.graphics.*;
|
||||
import mindustry.type.*;
|
||||
import mindustry.world.Block;
|
||||
import mindustry.world.*;
|
||||
|
||||
import static arc.graphics.g2d.Draw.rect;
|
||||
import static arc.graphics.g2d.Draw.*;
|
||||
@@ -1345,6 +1345,21 @@ public class Fx{
|
||||
});
|
||||
}),
|
||||
|
||||
surgeCruciSmoke = new Effect(160f, e -> {
|
||||
color(Pal.slagOrange);
|
||||
alpha(0.6f);
|
||||
|
||||
rand.setSeed(e.id);
|
||||
for(int i = 0; i < 3; i++){
|
||||
float len = rand.random(6f), rot = rand.range(40f) + e.rotation;
|
||||
|
||||
e.scaled(e.lifetime * rand.random(0.3f, 1f), b -> {
|
||||
v.trns(rot, len * b.finpow());
|
||||
Fill.circle(e.x + v.x, e.y + v.y, 2f * b.fslope() + 0.2f);
|
||||
});
|
||||
}
|
||||
}),
|
||||
|
||||
berylSpark = new Effect(21f, e -> {
|
||||
color(Color.white, Pal.berylShot, e.fin());
|
||||
stroke(e.fout() * 1.1f + 0.5f);
|
||||
|
||||
Reference in New Issue
Block a user