This commit is contained in:
Anuken
2020-06-26 14:27:26 -04:00
parent eabc5c15c7
commit fdf7c88083
228 changed files with 1219 additions and 1163 deletions
+8 -8
View File
@@ -26,31 +26,31 @@ public class Fx{
none = new Effect(0, 0f, e -> {}),
unitSpawn = new Effect(30f, e -> {
if(!(e.data instanceof Unitc)) return;
if(!(e.data instanceof Unit)) return;
alpha(e.fin());
float scl = 1f + e.fout() * 2f;
Unitc unit = (Unitc)e.data;
Unit unit = e.data();
rect(unit.type().region, e.x, e.y,
unit.type().region.getWidth() * Draw.scl * scl, unit.type().region.getHeight() * Draw.scl * scl, 180f);
}),
unitControl = new Effect(30f, e -> {
if(!(e.data instanceof Unitc)) return;
if(!(e.data instanceof Unit)) return;
Unitc select = (Unitc)e.data;
Unit select = e.data();
mixcol(Pal.accent, 1f);
alpha(e.fout());
rect(select.type().icon(Cicon.full), select.x(), select.y(), select.rotation() - 90f);
rect(select.type().icon(Cicon.full), select.x, select.y, select.rotation - 90f);
alpha(1f);
Lines.stroke(e.fslope() * 1f);
Lines.square(select.x(), select.y(), e.fout() * select.hitSize() * 2f, 45);
Lines.square(select.x, select.y, e.fout() * select.hitSize * 2f, 45);
Lines.stroke(e.fslope() * 2f);
Lines.square(select.x(), select.y(), e.fout() * select.hitSize() * 3f, 45f);
Lines.square(select.x, select.y, e.fout() * select.hitSize * 3f, 45f);
reset();
}),
@@ -1256,7 +1256,7 @@ public class Fx{
unitShieldBreak = new Effect(35, e -> {
if(!(e.data instanceof Unitc)) return;
Unitc unit = e.data();
Unit unit = e.data();
float radius = unit.hitSize() * 1.3f;