centralize configuration options

This commit is contained in:
p2r3
2025-09-07 14:07:12 +03:00
parent 5bcab2500c
commit 550edbdb37
3 changed files with 27 additions and 13 deletions

View File

@@ -3,17 +3,6 @@
#include <stdint.h>
// For best performance, CHUNK_SIZE should be a power of 2
#define CHUNK_SIZE 8
// Terrain low point - should start a bit below sea level for rivers/lakes
#define TERRAIN_BASE_HEIGHT 60
// Center point of cave generation
#define CAVE_BASE_DEPTH 24
// Size of every major biome in multiples of CHUNK_SIZE
// For best performance, should also be a power of 2
#define BIOME_SIZE 64
#define BIOME_RADIUS (BIOME_SIZE / 2)
typedef struct {
short x;
short z;