public Wire(int x, int y, int targetX, int targetY, bool above) { color = Util.HexToColor("595866"); Position = new Vector2(x, y); Target = new Vector2(targetX, targetY); curve = new SimpleCurve(Position, Target, Vector2.Zero); curve.Control = (curve.Begin + curve.End) / 2f + new Vector2(0f, 24f); Depth = (above ? -8500 : 2000); }
public Cobweb(int x, int y, int targetX, int targetY) { color = Util.HexToColor("696a6a"); Position = new Vector2(x, y); Target = new Vector2(targetX, targetY); curve = new SimpleCurve(Position, Target, Vector2.Zero); curve.Control = (curve.Begin + curve.End) / 2f + new Vector2(0f, 24f); Depth = -2000; }
public ClothesLine(int x, int y, int targetX, int targetY) { color = Util.HexToColor("22aa22"); Position = new Vector2(x, y); Target = new Vector2(targetX, targetY); curve = new SimpleCurve(Position, Target, Vector2.Zero); curve.Control = (curve.Begin + curve.End) / 2f + new Vector2(0f, 24f); Depth = -8500; }