Slightly better core upgrade effect

This commit is contained in:
Anuken
2022-02-06 23:06:34 -05:00
parent 1fb88c13b0
commit bf22b601f7
6 changed files with 28 additions and 8 deletions

View File

@@ -190,9 +190,17 @@ public class Fx{
}),
upgradeCore = new Effect(120f, e -> {
color(Color.white, Pal.accent, e.fin());
if(!(e.data instanceof Block block)) return;
mixcol(Tmp.c1.set(Color.white).lerp(Pal.accent, e.fin()), 1f);
alpha(e.fout());
Fill.square(e.x, e.y, tilesize / 2f * e.rotation);
rect(block.fullIcon, e.x, e.y);
}).layer(Layer.turret - 5f),
upgradeCoreBloom = new Effect(80f, e -> {
color(Pal.accent);
stroke(4f * e.fout());
Lines.square(e.x, e.y, tilesize / 2f * e.rotation + 2f);
}),
placeBlock = new Effect(16, e -> {