Tower constants
This commit is contained in:
parent
e4789d6156
commit
7b03cd0aa6
@ -78,6 +78,7 @@
|
|||||||
#define YELLOWFLOWERCOL 0xFEE0
|
#define YELLOWFLOWERCOL 0xFEE0
|
||||||
#define TOWERCOL 0xF111
|
#define TOWERCOL 0xF111
|
||||||
#define LIGHTCOL 0xFF00
|
#define LIGHTCOL 0xFF00
|
||||||
|
#define TOWERLOW 0.75
|
||||||
#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
|
||||||
@ -299,7 +300,7 @@ uint16_t gen_terrain(struct vec3i pos, haloo3d_obj *model, tecs *ecs,
|
|||||||
(struct vec3){.x = scale, .y = vertscale, .z = scale});
|
(struct vec3){.x = scale, .y = vertscale, .z = scale});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (treecount == 0 && lowy > 0.75 && !gentower) {
|
if (treecount == 0 && lowy > TOWERLOW && !gentower) {
|
||||||
gentower = 1;
|
gentower = 1;
|
||||||
gen_tower(&nl_model, tower, ecs, ctx, pos,
|
gen_tower(&nl_model, tower, ecs, ctx, pos,
|
||||||
(struct vec3){.x = triedge[0].x, .y = lowy, .z = triedge[0].y});
|
(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.flags |= H3DR_DITHERTRI;
|
||||||
context.rendersettings.ditherclose = INIT_DITHERSTART;
|
context.rendersettings.ditherclose = INIT_DITHERSTART;
|
||||||
context.rendersettings.ditherfar = INIT_DITHEREND;
|
context.rendersettings.ditherfar = INIT_DITHEREND;
|
||||||
|
// context.rendersettings.pctminsize = 500;
|
||||||
haloo3d_fb_init(&context.window, WIDTH, HEIGHT);
|
haloo3d_fb_init(&context.window, WIDTH, HEIGHT);
|
||||||
|
|
||||||
eprintf("Initialized screen buffers, context, and timers\n");
|
eprintf("Initialized screen buffers, context, and timers\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user