Advertisement
Guest User

Untitled

a guest
Dec 20th, 2012
810
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.50 KB | None | 0 0
  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.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement