public static Map load(SpriteLoader spriteLoader, String fileName)
  {
    java.io.BufferedReader reader;
    String line;
    String[] elements;
    Map map = null;
    try
    {
      reader = new java.io.BufferedReader(new java.io.FileReader(fileName));
      line = reader.readLine();
      elements = line.split(",");
      map = new Map(spriteLoader,Integer.parseInt(elements[0]),Integer.parseInt(elements[1]));
      for (int h = 0; h < map.height; h++)
      {
        for (int w = 0; w < map.width; w++)
        {
          line = reader.readLine();
          elements = line.split(":");
          map.setTile(w,h,new Tile(spriteLoader.load(elements[0]),TileType.parse(elements[1])));
        }
      }
      reader.close();
    }
    catch(Exception e)
    {
      System.err.println(map.width);
    }
    return map;
  }