Browse Source

add Debug.AddPoint, enable debug by default

main
Colin McMillen 2 weeks ago
parent
commit
a01c4a1d51
  1. 7
      Shared/Debug.cs

7
Shared/Debug.cs

@ -27,7 +27,7 @@ namespace SemiColinGames {
}
}
public static bool Enabled = false;
public static bool Enabled = true;
// This is a LinkedList instead of a List because SetFpsText() adds to its front.
static readonly LinkedList<string> toasts = new LinkedList<string>();
// Lines in excess of MAX_LINES get dropped on the floor.
@ -91,6 +91,11 @@ namespace SemiColinGames {
AddRect(rect, color);
}
[Conditional("DEBUG")]
public static void AddPoint(Vector2 v, Color color) {
AddPoint(v.ToPoint(), color);
}
[Conditional("DEBUG")]
public static void AddPoint(Point p, Color color) {
AddLine(p.X, p.Y - 2, p.X, p.Y + 1, color);

Loading…
Cancel
Save