Exemplo n.º 1
0
 public override void Draw(SpriteBatch spriteBatch)
 {
     LineGizmo.DrawLine(Position, Position + Vector2.UnitX * width, lineWidth, color, spriteBatch);
     LineGizmo.DrawLine(Position + Vector2.UnitX * width, Position + Vector2.UnitY * height + Vector2.UnitX * width, lineWidth, color, spriteBatch);
     LineGizmo.DrawLine(Position + Vector2.UnitY * height, Position + Vector2.UnitY * height + Vector2.UnitX * width, lineWidth, color, spriteBatch);
     LineGizmo.DrawLine(Position, Position + Vector2.UnitY * height, lineWidth, color, spriteBatch);
 }
Exemplo n.º 2
0
 public override void Draw(SpriteBatch spriteBatch)
 {
     LineGizmo.DrawLine(new Vector2(Position.X, Position.Y - size / 2), new Vector2(Position.X, Position.Y + size / 2), width, color, spriteBatch);
     LineGizmo.DrawLine(new Vector2(Position.X - size / 2, Position.Y), new Vector2(Position.X + size / 2, Position.Y), width, color, spriteBatch);
 }