diff options
Diffstat (limited to '')
| -rw-r--r-- | platformer/src/config.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/platformer/src/config.h b/platformer/src/config.h index 807a6be..8739dbf 100644 --- a/platformer/src/config.h +++ b/platformer/src/config.h @@ -89,6 +89,11 @@ * WORLD_HALF_EXTENT 100.0f m; the ground is a square of 2x this per side * GRID_SPACING 1.0f m between grid lines * GRID_MAJOR_EVERY 10 every Nth line drawn brighter + * WORLD_SEED 20260924u seed for the platform layout; change it + * for a different (but repeatable) level + * WORLD_PLATFORM_COUNT 40 how many platforms to scatter + * WORLD_PLATFORM_AREA 25.0f m; platforms land within this distance of + * spawn in x and z (smaller = denser) * * CONVENTIONS: 1 unit = 1 meter, seconds, radians (degrees only for names * ending in _DEG, which are easier to tune by eye; converted where @@ -168,5 +173,8 @@ #define WORLD_HALF_EXTENT 100.0f /* m; the ground is a square of 2x this per side */ #define GRID_SPACING 1.0f /* m between grid lines; the grid is how you read speed */ #define GRID_MAJOR_EVERY 10 /* every Nth line drawn brighter, for reading distances */ +#define WORLD_SEED 20260924u /* platform layout seed; change for a different (repeatable) level */ +#define WORLD_PLATFORM_COUNT 40 /* platforms scattered around spawn; more = busier level */ +#define WORLD_PLATFORM_AREA 25.0f /* m from spawn (x and z) platforms can land; smaller = denser */ #endif /* CONFIG_H */ |
