Commits

Eric Fredricksen committed 8e33b59

Expand chunk gen distance options. ^G generates lots of nearby terra

  • Participants
  • Parent commits be6d7a4

Comments (0)

Files changed (3)

 Noise
 https://github.com/ashima/webgl-noise
 http://www.pouet.net/topic.php?which=8294&page=2
+http://www.geeks3d.com/20100831/shader-library-noise-and-pseudo-random-number-generator-in-glsl/
 
 Packaged apps
 http://developer.chrome.com/trunk/apps/about_apps.html
 #options div {
   margin-top: 1em;
   margin-left: 1em;
-  text-align: left;x
+  text-align: left;
 }
 
 </style>
       <div>
         Chunk generation distance:<br>
         <input type="radio" name="rdist" value="0">Off<br>
-        <input type="radio" name="rdist" value="3" checked>Near<br>
-        <input type="radio" name="rdist" value="12">Medium<br>
-        <input type="radio" name="rdist" value="50">Far
+        <input type="radio" name="rdist" value="2">Very Near Indeed<br>
+        <input type="radio" name="rdist" value="16" checked>Near<br>
+        <input type="radio" name="rdist" value="32">Medium<br>
+        <input type="radio" name="rdist" value="64">Far</br>
+        <input type="radio" name="rdist" value="64">Very Far Indeed</br>
       </div>
       <div><button id="resumegame2">Done</button></div>
     </div>
 var GAME;
 var AVATAR;  // hack-o alias for GAME.avatar because we use it so much
 
-var GRASSY = false;       // true to use decal-style grass
-var SPREAD_OUT = 3;       // create nearby chunks at this radius
+var GRASSY = false;        // true to use decal-style grass
+var SPREAD_OUT = 16;       // create nearby chunks at this radius
 
 var PICKED = null;
 var PICKED_FACE = 0;
       buildTree(PICKED.neighbor(PICKED_FACE));
     }
 
+    if (c === '^G')
+      loadNearbyChunks(AVATAR, 64);  // generate lots of terrain
+
+
     if (c === 'Y') {
       // Toggle options page
       if (GAME) {