1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-25 22:53:19 +00:00

rogueviz::snow:: options -snow-color and -snow-intense

This commit is contained in:
Zeno Rogue 2020-04-01 11:28:20 +02:00
parent 94be9c850c
commit dc2658a98c

View File

@ -20,8 +20,13 @@ namespace hr {
ld snow_lambda = 1;
color_t snow_color = 0xFFFFFFFF;
bool snow_test = false;
/* intense brightness */
bool snow_intense = false;
/* a funny glitch */
bool snow_glitch = false;
@ -123,8 +128,9 @@ bool draw_snow(cell *c, const transmatrix& V) {
poly_outline = 0xFF;
for(auto& T: matrices_at[c]) {
auto& p = queuepoly(V * T, shapeid(snow_shape), 0xFFFFFFFF);
auto& p = queuepoly(V * T, shapeid(snow_shape), snow_color);
if(!snow_texture) p.tinf = nullptr;
if(snow_intense) p.flags |= POLY_INTENSE;
}
return false;
@ -151,6 +157,12 @@ auto hchook = addHook(hooks_drawcell, 100, draw_snow)
else if(argis("-snow-test")) {
snow_test = true;
}
else if(argis("-snow-color")) {
shift(); snow_color = arghex();
}
else if(argis("-snow-intense")) {
snow_intense = true;
}
else if(argis("-snow-no-texture")) {
snow_texture = false;
}