SHARE
TWEET

Untitled

a guest Dec 20th, 2012 618 Never
  1.  public static void CreateWorld()
  2.         {
  3.             NoiseGenerator.generateNoise(2, 22, .085, .3); //Tells the generator to make a freshly generated map based on the parameters
  4.  
  5.  
  6.         for (int i = 0; i < WorldSize.X; i++)
  7.             {
  8.                 for (int y = 0; y < WorldSize.Y; y++)
  9.                 {
  10.                     Lists.TileHeightArray[i, y] = (float)NoiseGenerator.Noise(i, y); //Goes through the whole map, assigning the correct height values
  11.                 }
  12.             }  
  13.         }
RAW Paste Data
Top