File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -118,8 +118,8 @@ fn generate_chunk(
118
118
let perlin = Perlin :: new ( seed) ;
119
119
120
120
let scale = 0.1 ;
121
- let max_perlin_height_variation = 10 .0;
122
- let base_height = 64 ;
121
+ let max_perlin_height_variation = 5 .0;
122
+ let base_height = 10 ; // should be 64
123
123
124
124
const CHUNK_SIZE : i32 = 16 ;
125
125
const WORLD_MIN_Y : i32 = 0 ;
@@ -146,7 +146,7 @@ fn generate_chunk(
146
146
for y in WORLD_MIN_Y ..=terrain_height {
147
147
let block = if y == 0 {
148
148
Block :: Bedrock // Placer la bedrock à la couche 0
149
- } else if y < terrain_height - 3 {
149
+ } else if y < terrain_height - 2 {
150
150
Block :: Stone // Placer de la pierre en dessous des 3 dernières couches
151
151
} else if y < terrain_height {
152
152
Block :: Dirt // Placer de la terre dans les 3 couches sous la surface
You can’t perform that action at this time.
0 commit comments