private void InitialBackGround() { VergeTileData data = new VergeTileData(); data.gridWidth = 50; data.gridHeight = 50; data.SetRondomVertexIndex(50, 50, 4); data.SetRondomGridIndex(50, 50); data.texPaths = new string[] { Path.Combine(Directories.ContentDirectory, "BackGround\\Lords_Dirt.tga"), Path.Combine(Directories.ContentDirectory, "BackGround\\Lords_DirtRough.tga"), Path.Combine(Directories.ContentDirectory, "BackGround\\Lords_DirtGrass.tga"), Path.Combine(Directories.ContentDirectory, "BackGround\\Lords_GrassDark.tga"), }; backGround = new VergeTileGround(data, scrnRect, mapSize); }
private void InintialBackGround() { VergeTileData data2 = new VergeTileData(); data2.gridWidth = 20; data2.gridHeight = 15; //data2.vertexTexIndexs = new int[] //{ // 0,0,0,1,1,1,1,2,2,2,3, // 0,0,1,2,1,1,1,2,2,3,3, // 0,1,3,3,3,3,1,2,2,3,3, // 0,1,3,3,3,1,2,2,3,3,3, // 0,1,1,2,3,1,2,2,3,3,3, // 1,1,1,2,2,2,2,2,2,3,2, // 1,1,1,1,2,2,2,3,3,2,2, // 1,1,2,2,2,1,2,2,3,3,2, // 1,1,1,2,2,2,2,3,3,2,2, // 1,1,2,1,2,3,2,3,3,2,2, // 1,1,2,2,2,2,2,3,2,2,2, //}; data2.SetRondomVertexIndex(20, 15, 4); data2.SetRondomGridIndex(20, 15); data2.texPaths = new string[] { Path.Combine(Directories.ContentDirectory, "BackGround\\Lords_Dirt.tga"), Path.Combine(Directories.ContentDirectory, "BackGround\\Lords_DirtRough.tga"), Path.Combine(Directories.ContentDirectory, "BackGround\\Lords_DirtGrass.tga"), Path.Combine(Directories.ContentDirectory, "BackGround\\Lords_GrassDark.tga"), //"Cave_Dirt.tga", //"Cave_LavaCracks.tga", //"Cave_Brick.tga", //"Cave_RedStones.tga", //"Cave_SquareTiles.tga", //"Cave_Lava.tga", //"Cave_GreyStones.tga", //"Lordw_Dirt.tga", //"Lordw_DirtRough.tga", //"Lordw_Grass.tga", //"Lordw_SnowGrass.tga", //"Lordw_Rock.tga", //"Lordw_Snow.tga", //"North_dirt.tga", //"North_dirtdark.tga", //"North_Grass.tga", //"North_ice.tga", //"North_rock.tga", //"North_Snow.tga", //"North_SnowRock.tga", //"Village_Dirt.tga", //"Village_DirtRough.tga", //"Village_GrassShort.tga", //"Village_Crops.tga", }; vergeGround = new VergeTileGround(data2, scrnViewRect, mapSize); }