Consistent engine whites (#10482)
This commit is contained in:
@@ -1754,29 +1754,30 @@ public class UnitType extends UnlockableContent implements Senseable{
|
|||||||
|
|
||||||
Tmp.v1.set(x, y).rotate(rot);
|
Tmp.v1.set(x, y).rotate(rot);
|
||||||
float ex = Tmp.v1.x, ey = Tmp.v1.y;
|
float ex = Tmp.v1.x, ey = Tmp.v1.y;
|
||||||
|
float rad = (radius + Mathf.absin(Time.time, 2f, radius / 4f)) * scale;
|
||||||
|
|
||||||
//engine outlines (cursed?)
|
//engine outlines (cursed?)
|
||||||
/*float z = Draw.z();
|
/*float z = Draw.z();
|
||||||
Draw.z(z - 0.0001f);
|
Draw.z(z - 0.0001f);
|
||||||
Draw.color(type.outlineColor);
|
Draw.color(type.outlineColor);
|
||||||
Fill.circle(
|
Fill.circle(
|
||||||
unit.x + ex,
|
unit.x + ex,
|
||||||
unit.y + ey,
|
unit.y + ey,
|
||||||
(type.outlineRadius * Draw.scl + radius + Mathf.absin(Time.time, 2f, radius / 4f)) * scale
|
(type.outlineRadius * Draw.scl + radius + Mathf.absin(Time.time, 2f, radius / 4f)) * scale
|
||||||
);
|
);
|
||||||
Draw.z(z);*/
|
Draw.z(z);*/
|
||||||
|
|
||||||
Draw.color(color);
|
Draw.color(color);
|
||||||
Fill.circle(
|
Fill.circle(
|
||||||
unit.x + ex,
|
unit.x + ex,
|
||||||
unit.y + ey,
|
unit.y + ey,
|
||||||
(radius + Mathf.absin(Time.time, 2f, radius / 4f)) * scale
|
rad
|
||||||
);
|
);
|
||||||
Draw.color(type.engineColorInner);
|
Draw.color(type.engineColorInner);
|
||||||
Fill.circle(
|
Fill.circle(
|
||||||
unit.x + ex - Angles.trnsx(rot + rotation, 1f),
|
unit.x + ex - Angles.trnsx(rot + rotation, rad / 4f),
|
||||||
unit.y + ey - Angles.trnsy(rot + rotation, 1f),
|
unit.y + ey - Angles.trnsy(rot + rotation, rad / 4f),
|
||||||
(radius + Mathf.absin(Time.time, 2f, radius / 4f)) / 2f * scale
|
rad / 2f
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user