zenorogue / hyperrogue

A SDL roguelike in a non-euclidean world
GNU General Public License v2.0
566 stars 72 forks source link

Adjust Snake Nest colors so drawMonster can add them without overflowing to black #271

Closed jruderman closed 3 years ago

jruderman commented 3 years ago

drawMonster has:

      int c1 = nestcolors[pattern_threecolor(c)];
      int c2 = nestcolors[pattern_threecolor(c->move(d))];
      col = (c1 + c2); // sum works because they are dark and should be brightened

So, the colors in nestcolors need to have each color component below 0x80 in order for the snakes not appear black.

jruderman commented 3 years ago

Or maybe it's supposed to be impossible for Snake Nest snakes to be entirely on a single color? Currently they can spawn as red-green alternating but switch to green-green as they pursue the player.