Unit assembly finalizations

This commit is contained in:
Anuken
2021-12-19 20:31:00 -05:00
parent 59550f58ee
commit 430fe2fd0a
12 changed files with 75 additions and 16 deletions

View File

@@ -292,6 +292,14 @@ public class Fx{
Lines.poly(e.x, e.y, 4, 5f + e.fin() * 12f);
}),
unitAssemble = new Effect(70, e -> {
if(!(e.data instanceof Unit unit)) return;
alpha(e.fout());
mixcol(Pal.accent, e.fout());
rect(unit.type.fullIcon, unit.x, unit.y, unit.rotation - 90);
}).layer(Layer.flyingUnit + 5f),
padlaunch = new Effect(10, e -> {
stroke(4f * e.fout());
color(Pal.accent);