Skip to content

Commit

Permalink
add sides to HoverPart
Browse files Browse the repository at this point in the history
  • Loading branch information
stacktrace-error committed Jul 1, 2023
1 parent 05874ad commit b2d4872
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/mindustry/entities/part/HoverPart.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
public class HoverPart extends DrawPart{
public float radius = 4f;
public float x, y, rotation, phase = 50f, stroke = 3f, minStroke = 0.12f;
public int circles = 2;
public int circles = 2, sides = 4;
public Color color = Color.white;
public boolean mirror = false;
public float layer = -1f, layerOffset = 0f;
Expand Down Expand Up @@ -40,7 +40,7 @@ public void draw(PartParams params){
rx = params.x + Tmp.v1.x,
ry = params.y + Tmp.v1.y;

Lines.square(rx, ry, radius * fin, params.rotation - 45f);
Lines.poly(rx, ry, sides, radius * fin, params.rotation - 45f);
}
}

Expand Down

0 comments on commit b2d4872

Please sign in to comment.