Exemple #1
0
 public static bool CanDraw(Point p, Level level)
 {
     if (level.CheckWallCollision(p))
     {
         return(false);
     }
     if (p.X < 0 || p.X >= Console.WindowWidth)
     {
         return(false);
     }
     if (p.Y < 0 || p.Y >= Console.WindowHeight)
     {
         return(false);
     }
     return(true);
 }