Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 20th, 2012  |  syntax: C#  |  size: 0.50 KB  |  views: 418  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.         }