1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-18 07:27:40 +00:00

bubbles react to neon

This commit is contained in:
Zeno Rogue
2019-12-26 23:32:27 +01:00
parent 7396024c38
commit c4528bf954
2 changed files with 17 additions and 3 deletions

View File

@@ -2015,9 +2015,19 @@ template<class T, class... U> T& queuea(PPR prio, U... u) {
}
#endif
#if CAP_SHAPES
EX int neon_mode = 0;
EX void apply_neon(color_t& col, int& r) {
switch(neon_mode) {
case 0: break;
case 1: poly_outline = col << 8; col = 0; break;
case 2: r = 0; break;
case 3: poly_outline = col << 8; col &= 0xFEFEFE; col >>= 1; break;
}
}
#if CAP_SHAPES
EX dqi_poly& queuepolyat(const transmatrix& V, const hpcshape& h, color_t col, PPR prio) {
if(prio == PPR::DEFAULT) prio = h.prio;