File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -1754,29 +1754,30 @@ public void draw(Unit unit){
1754
1754
1755
1755
Tmp .v1 .set (x , y ).rotate (rot );
1756
1756
float ex = Tmp .v1 .x , ey = Tmp .v1 .y ;
1757
+ float rad = (radius + Mathf .absin (Time .time , 2f , radius / 4f )) * scale ;
1757
1758
1758
1759
//engine outlines (cursed?)
1759
1760
/*float z = Draw.z();
1760
1761
Draw.z(z - 0.0001f);
1761
1762
Draw.color(type.outlineColor);
1762
1763
Fill.circle(
1763
- unit.x + ex,
1764
- unit.y + ey,
1765
- (type.outlineRadius * Draw.scl + radius + Mathf.absin(Time.time, 2f, radius / 4f)) * scale
1764
+ unit.x + ex,
1765
+ unit.y + ey,
1766
+ (type.outlineRadius * Draw.scl + radius + Mathf.absin(Time.time, 2f, radius / 4f)) * scale
1766
1767
);
1767
1768
Draw.z(z);*/
1768
1769
1769
1770
Draw .color (color );
1770
1771
Fill .circle (
1771
- unit .x + ex ,
1772
- unit .y + ey ,
1773
- ( radius + Mathf . absin ( Time . time , 2f , radius / 4f )) * scale
1772
+ unit .x + ex ,
1773
+ unit .y + ey ,
1774
+ rad
1774
1775
);
1775
1776
Draw .color (type .engineColorInner );
1776
1777
Fill .circle (
1777
- unit .x + ex - Angles .trnsx (rot + rotation , 1f ),
1778
- unit .y + ey - Angles .trnsy (rot + rotation , 1f ),
1779
- ( radius + Mathf . absin ( Time . time , 2f , radius / 4f )) / 2f * scale
1778
+ unit .x + ex - Angles .trnsx (rot + rotation , rad / 4f ),
1779
+ unit .y + ey - Angles .trnsy (rot + rotation , rad / 4f ),
1780
+ rad / 2f
1780
1781
);
1781
1782
}
1782
1783
You can’t perform that action at this time.
0 commit comments