/// <summary> /// Creates an empty area using a specified tileset at the specified global coordinate /// </summary> /// <param name="tileSetpath"></param> /// <param name="location"></param> /// <returns></returns> public static Area makeEmptyArea(string tileSetpath, Point location) { Area a = new Area(tileSetpath, location); // default area for (int i = 0; i < WIDTH_IN_TILES; ++i) for (int j = 0; j < HEIGHT_IN_TILES; ++j) { a.Tiles[i, j] = 3; //if (j == HEIGHT_IN_TILES - 1) //{ // a.Tiles[i, j] = 4; //} } a.initializeTileColliders(); a.initializeAreaTransitions(null, null, null, null); return a; }
/// <summary> /// Creates an empty area using a specified tileset at the specified global coordinate /// </summary> /// <param name="tileSetpath"></param> /// <param name="location"></param> /// <returns></returns> public static Area makeEmptyArea(string tileSetpath, Point location) { Area a = new Area(tileSetpath, location); // default area /*for (int i = 0; i < WIDTH_IN_TILES; ++i) for (int j = 0; j < HEIGHT_IN_TILES; ++j) { a.Tiles[i, j] = 3; }*/ // whoever came up with this map format was drunk, // it's stored rotated counter-clockwise 90 degrees AND THEN horizontally flipped // what the shit, right? a.Tiles = AreaDefinitions.areaAt(location); a.initializeTileColliders(); a.initializeAreaTransitions(null, null, null, null); return a; }