From c52bf93daf97ab6e5a335e4ffff4bb3115ed12ac Mon Sep 17 00:00:00 2001 From: Carlos Sanchez Date: Sun, 22 Sep 2024 17:27:36 -0400 Subject: [PATCH] Less frequent towers --- terrain.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/terrain.c b/terrain.c index 3401e94..d18d99e 100644 --- a/terrain.c +++ b/terrain.c @@ -54,16 +54,14 @@ // Lookvec for objects which all face forward along with the player #define DEFAULTLOOK \ { .x = 0, .y = 0, .z = -1 } + // How big each chunk is (x and y, square). MUST BE POWER OF 2 - 1 #define CHUNKSIZE 7 // This is the width in tiles #define CHUNKSCALE (1.0 / CHUNKSIZE) // This is how many vertices across a chunk is #define CHUNKVSIZE (CHUNKSIZE + 1) -#define VIEWDISTANCE 10 +#define VIEWDISTANCE 10 // MAX IS AROUND 12 #define PLBOXEDGE (VIEWDISTANCE * 2 + 1) -#define INIT_NEARCLIP 0.01 -#define INIT_FARCLIP 100.0 - #define MAXCHUNKPERFRAME PLBOXEDGE // Generation consts / things for looks @@ -81,7 +79,7 @@ #define YELLOWFLOWERCOL 0xFEE0 #define TOWERCOL 0xF111 #define LIGHTCOL 0xFF00 -#define TOWERLOW 0.75 +#define TOWERLOW 0.758 // small changes to this make a huge difference #define TOWERLIGHTMINSIZE (CHUNKSCALE * 0.1) #define TOWERLIGHTMAXSIZE (CHUNKSCALE * 0.5) #define TOWERLIGHTMINTRANS 0 @@ -108,6 +106,8 @@ #define INIT_FOV 90.0 #define INIT_CAMPITCH (MPI_2 * 1.3) // MPI_2 * 1.6 // 1.575 #define INIT_PLAYERHEIGHT 0.65 +#define INIT_NEARCLIP 0.01 +#define INIT_FARCLIP 100.0 #define INIT_PLAYERSPEED \ { .x = 0, .y = 0, .z = -1.5 }