Less frequent towers
This commit is contained in:
parent
51addcae02
commit
c52bf93daf
10
terrain.c
10
terrain.c
@ -54,16 +54,14 @@
|
|||||||
// Lookvec for objects which all face forward along with the player
|
// Lookvec for objects which all face forward along with the player
|
||||||
#define DEFAULTLOOK \
|
#define DEFAULTLOOK \
|
||||||
{ .x = 0, .y = 0, .z = -1 }
|
{ .x = 0, .y = 0, .z = -1 }
|
||||||
|
|
||||||
// How big each chunk is (x and y, square). MUST BE POWER OF 2 - 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 CHUNKSIZE 7 // This is the width in tiles
|
||||||
#define CHUNKSCALE (1.0 / CHUNKSIZE)
|
#define CHUNKSCALE (1.0 / CHUNKSIZE)
|
||||||
// This is how many vertices across a chunk is
|
// This is how many vertices across a chunk is
|
||||||
#define CHUNKVSIZE (CHUNKSIZE + 1)
|
#define CHUNKVSIZE (CHUNKSIZE + 1)
|
||||||
#define VIEWDISTANCE 10
|
#define VIEWDISTANCE 10 // MAX IS AROUND 12
|
||||||
#define PLBOXEDGE (VIEWDISTANCE * 2 + 1)
|
#define PLBOXEDGE (VIEWDISTANCE * 2 + 1)
|
||||||
#define INIT_NEARCLIP 0.01
|
|
||||||
#define INIT_FARCLIP 100.0
|
|
||||||
|
|
||||||
#define MAXCHUNKPERFRAME PLBOXEDGE
|
#define MAXCHUNKPERFRAME PLBOXEDGE
|
||||||
|
|
||||||
// Generation consts / things for looks
|
// Generation consts / things for looks
|
||||||
@ -81,7 +79,7 @@
|
|||||||
#define YELLOWFLOWERCOL 0xFEE0
|
#define YELLOWFLOWERCOL 0xFEE0
|
||||||
#define TOWERCOL 0xF111
|
#define TOWERCOL 0xF111
|
||||||
#define LIGHTCOL 0xFF00
|
#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 TOWERLIGHTMINSIZE (CHUNKSCALE * 0.1)
|
||||||
#define TOWERLIGHTMAXSIZE (CHUNKSCALE * 0.5)
|
#define TOWERLIGHTMAXSIZE (CHUNKSCALE * 0.5)
|
||||||
#define TOWERLIGHTMINTRANS 0
|
#define TOWERLIGHTMINTRANS 0
|
||||||
@ -108,6 +106,8 @@
|
|||||||
#define INIT_FOV 90.0
|
#define INIT_FOV 90.0
|
||||||
#define INIT_CAMPITCH (MPI_2 * 1.3) // MPI_2 * 1.6 // 1.575
|
#define INIT_CAMPITCH (MPI_2 * 1.3) // MPI_2 * 1.6 // 1.575
|
||||||
#define INIT_PLAYERHEIGHT 0.65
|
#define INIT_PLAYERHEIGHT 0.65
|
||||||
|
#define INIT_NEARCLIP 0.01
|
||||||
|
#define INIT_FARCLIP 100.0
|
||||||
#define INIT_PLAYERSPEED \
|
#define INIT_PLAYERSPEED \
|
||||||
{ .x = 0, .y = 0, .z = -1.5 }
|
{ .x = 0, .y = 0, .z = -1.5 }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user