Change stepHeight value
This commit is contained in:
parent
0f730b167e
commit
ca3b8f33ae
@ -63,7 +63,7 @@ public class Terrain implements Constants {
|
|||||||
public void generate(long seed) {
|
public void generate(long seed) {
|
||||||
final Random rnd = new Random(seed);
|
final Random rnd = new Random(seed);
|
||||||
final int maxHeight = HEIGHT / 2;
|
final int maxHeight = HEIGHT / 2;
|
||||||
final int stepHeight = maxHeight / 100 * blockSize;
|
final int stepHeight = maxHeight / 75 * blockSize;
|
||||||
|
|
||||||
blockHeights[0] = rnd.nextInt(maxHeight);
|
blockHeights[0] = rnd.nextInt(maxHeight);
|
||||||
for (int i = 1; i < blocksCount; i++) {
|
for (int i = 1; i < blocksCount; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user