summaryrefslogtreecommitdiff
path: root/platformer/src/config.h
diff options
context:
space:
mode:
authorSchark <jordan@schark.online>2026-09-24 14:43:21 -0400
committerSchark <jordan@schark.online>2026-09-24 14:43:21 -0400
commitb47571e7f1b4348b526c23a6ab6b88dbcb49ecf1 (patch)
tree3c0b52b313b02f270e77844c67278e8a51822b80 /platformer/src/config.h
parent077dfb2774e29cc49b9d602bb3a2f5e81e4a9a63 (diff)
downloadgamedev-b47571e7f1b4348b526c23a6ab6b88dbcb49ecf1.tar.gz
gamedev-b47571e7f1b4348b526c23a6ab6b88dbcb49ecf1.zip
Add random platforms into game world for testing
Diffstat (limited to 'platformer/src/config.h')
-rw-r--r--platformer/src/config.h8
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 */