Browse Source

add Debug.AddLine() function that takes in integer coordinates instead of Points

GitOrigin-RevId: 145f4f0763
master
Colin McMillen 4 years ago
parent
commit
57e9ea558a
  1. 4
      Shared/Debug.cs

4
Shared/Debug.cs

@ -70,6 +70,10 @@ namespace SemiColinGames {
lines.Add(new DebugLine(start, end, color));
}
public static void AddLine(int p1x, int p1y, int p2x, int p2y, Color color) {
lines.Add(new DebugLine(new Point(p1x, p1y), new Point(p2x, p2y), color));
}
public static void DrawToasts(SpriteBatch spriteBatch, SpriteFont font) {
if (!Enabled) {
return;

Loading…
Cancel
Save