Package: crack-attack Severity: wishlist Version: 1.1.14-5 Crack Attack! currently uses only colors to distinguish the different blocks. This unfortunately makes the game a lot more difficult for colorblind people.
Frozen Bubble added visual shapes inside the bubbles which can be activated by using the --colourblind flag. At first look, the change needed to add a similar feature might be pretty intrusive, since each block would need either a different texture, or a different shape (in three definitions). An alternative way would be to add the ability to configure the color set without the need for a full recompilation. For the record, here is the patch that I made which allows me to play in spite of my protanomaly. Regards, -- Jérémy
--- crack-attack-1.1.14.orig/src/DrawBlocks.cxx +++ crack-attack-1.1.14/src/DrawBlocks.cxx @@ -43,36 +43,36 @@ #include "X.h" const GLfloat Displayer::block_colors[BF_NUMBER][3] - = { { 0.73f, 0.0f, 0.73f }, // purple + = { { 0.73f, 0.5f, 0.73f }, // purple { 0.2f, 0.2f, 0.8f }, // blue { 0.0f, 0.6f, 0.05f }, // green { 0.85f, 0.85f, 0.0f }, // yellow - { 1.0f, 0.4f, 0.0f }, // orange + { 1.0f, 0.73f, 0.5f }, // orange { 1.0f, 0.0f, 0.0f }, // wild { 0.4f, 0.4f, 0.4f }, // gray { 0.05f, 0.05f, 0.05f }, // black { 0.95f, 0.95f, 0.95f }, // white - { 2.0f * 0.73f, 2.0f * 0.0f, 2.0f * 0.73f }, // special purple + { 2.0f * 0.73f, 2.0f * 0.5f, 2.0f * 0.73f }, // special purple { 2.0f * 0.2f, 2.0f * 0.2f, 2.0f * 0.8f }, // special blue { 2.0f * 0.0f, 2.0f * 0.6f, 2.0f * 0.05f }, // special green { 2.0f * 0.85f, 2.0f * 0.85f, 2.0f * 0.0f }, // special yellow - { 2.0f * 1.0f, 2.0f * 0.4f, 2.0f * 0.0f } }; // special orange + { 2.0f * 1.0f, 2.0f * 0.73f, 2.0f * 0.5f } }; // special orange const GLfloat creep_colors[BF_NUMBER][3] - = { { 0.25f * 0.73f, 0.25f * 0.0f, 0.25f * 0.73f }, // purple + = { { 0.25f * 0.73f, 0.25f * 0.5f, 0.25f * 0.73f }, // purple { 0.25f * 0.2f, 0.25f * 0.2f, 0.25f * 0.8f }, // blue { 0.25f * 0.0f, 0.25f * 0.6f, 0.25f * 0.05f }, // green { 0.25f * 0.85f, 0.25f * 0.85f, 0.25f * 0.0f }, // yellow - { 0.25f * 1.0f, 0.25f * 0.4f, 0.25f * 0.0f }, // orange + { 0.25f * 1.0f, 0.25f * 0.73f, 0.25f * 0.5f }, // orange { 0.25f * 1.0f, 0.25f * 0.0f, 0.25f * 0.0f }, // wild { 0.25f * 0.4f, 0.25f * 0.4f, 0.25f * 0.4f }, // gray { 0.25f * 0.05f, 0.25f * 0.05f, 0.25f * 0.05f }, // black { 0.25f * 0.95f, 0.25f * 0.95f, 0.25f * 0.95f }, // white - { 0.5f * 0.73f, 0.5f * 0.0f, 0.5f * 0.73f }, // special purple + { 0.5f * 0.73f, 0.5f * 0.5f, 0.5f * 0.73f }, // special purple { 0.5f * 0.2f, 0.5f * 0.2f, 0.5f * 0.8f }, // special blue { 0.5f * 0.0f, 0.5f * 0.6f, 0.5f * 0.05f }, // special green { 0.5f * 0.85f, 0.5f * 0.85f, 0.5f * 0.0f }, // special yellow - { 0.5f * 1.0f, 0.5f * 0.4f, 0.5f * 0.0f } }; // special orange + { 0.5f * 1.0f, 0.5f * 0.73f, 0.5f * 0.5f } }; // special orange void Displayer::setWildBlockColor ( Block &block, float flash ) {
signature.asc
Description: Digital signature