
Untitled
By: a guest on
Dec 20th, 2012 | syntax:
C# | size: 0.50 KB | hits: 46 | expires: Never
public static void CreateWorld()
{
NoiseGenerator.generateNoise(2, 22, .085, .3); //Tells the generator to make a freshly generated map based on the parameters
for (int i = 0; i < WorldSize.X; i++)
{
for (int y = 0; y < WorldSize.Y; y++)
{
Lists.TileHeightArray[i, y] = (float)NoiseGenerator.Noise(i, y); //Goes through the whole map, assigning the correct height values
}
}
}