Tower constants

This commit is contained in:
Carlos Sanchez 2024-09-22 14:20:36 -04:00
parent e4789d6156
commit 7b03cd0aa6

View File

@ -78,6 +78,7 @@
#define YELLOWFLOWERCOL 0xFEE0
#define TOWERCOL 0xF111
#define LIGHTCOL 0xFF00
#define TOWERLOW 0.75
#define TOWERLIGHTMINSIZE (CHUNKSCALE * 0.1)
#define TOWERLIGHTMAXSIZE (CHUNKSCALE * 0.5)
#define TOWERLIGHTMINTRANS 0
@ -299,7 +300,7 @@ uint16_t gen_terrain(struct vec3i pos, haloo3d_obj *model, tecs *ecs,
(struct vec3){.x = scale, .y = vertscale, .z = scale});
}
}
if (treecount == 0 && lowy > 0.75 && !gentower) {
if (treecount == 0 && lowy > TOWERLOW && !gentower) {
gentower = 1;
gen_tower(&nl_model, tower, ecs, ctx, pos,
(struct vec3){.x = triedge[0].x, .y = lowy, .z = triedge[0].y});
@ -721,6 +722,7 @@ int main() { // int argc, char **argv) {
// context.rendersettings.flags |= H3DR_DITHERTRI;
context.rendersettings.ditherclose = INIT_DITHERSTART;
context.rendersettings.ditherfar = INIT_DITHEREND;
// context.rendersettings.pctminsize = 500;
haloo3d_fb_init(&context.window, WIDTH, HEIGHT);
eprintf("Initialized screen buffers, context, and timers\n");