diff --git a/Shared/Debug.cs b/Shared/Debug.cs index 3237750..5a429b1 100644 --- a/Shared/Debug.cs +++ b/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 toasts = new LinkedList(); // 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);