1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 09:30:35 +00:00

magmahep: switch

This commit is contained in:
Zeno Rogue 2020-06-08 01:52:37 +02:00
parent 9265fe197b
commit f74e2f1ae8

View File

@ -45,35 +45,36 @@ void make() {
heps.emplace_back(gpushxto0(vertices[2]), 0xFFFFFFFF); heps.emplace_back(gpushxto0(vertices[2]), 0xFFFFFFFF);
if(magmashape == 1) { switch(magmashape) {
case 1:
for(int i=0; i<13; i++) for(int i=0; i<13; i++)
heps.emplace_back(heps.back().first * get_adj(0, 3), heps.back().second ^ 0xFFFF00); heps.emplace_back(heps.back().first * get_adj(0, 3), heps.back().second ^ 0xFFFF00);
} break;
if(magmashape == 2) { case 2:
for(int i=0; i<8; i++) for(int i=0; i<8; i++)
heps.emplace_back(heps.back().first * get_adj(3, 0), heps.back().second ^ 0xFFFF00); heps.emplace_back(heps.back().first * get_adj(3, 0), heps.back().second ^ 0xFFFF00);
heps.emplace_back(heps.back().first * get_adj(3, 6), heps.back().second ^ 0xFFFF00); heps.emplace_back(heps.back().first * get_adj(3, 6), heps.back().second ^ 0xFFFF00);
} break;
if(magmashape == 3) { case 3:
for(int a=0; a<2; a++) { for(int a=0; a<2; a++) {
heps.emplace_back(heps.back().first * get_adj(2, 0), heps.back().second ^ 0xFFFF00); heps.emplace_back(heps.back().first * get_adj(2, 0), heps.back().second ^ 0xFFFF00);
for(int i=a; i<8; i++) for(int i=a; i<8; i++)
heps.emplace_back(heps.back().first * get_adj(3, 0), heps.back().second ^ 0xFFFF00); heps.emplace_back(heps.back().first * get_adj(3, 0), heps.back().second ^ 0xFFFF00);
} }
} break;
if(magmashape == 4) { case 4:
for(int a=0; a<4; a++) for(int a=0; a<4; a++)
heps.emplace_back(heps.back().first * get_adj(3, 0), heps.back().second ^ 0xFFFF00); heps.emplace_back(heps.back().first * get_adj(3, 0), heps.back().second ^ 0xFFFF00);
heps.emplace_back(heps.back().first * get_adj(3, 1), heps.back().second ^ 0xFFFF00); heps.emplace_back(heps.back().first * get_adj(3, 1), heps.back().second ^ 0xFFFF00);
for(int a=0; a<4; a++) for(int a=0; a<4; a++)
heps.emplace_back(heps.back().first * get_adj(3, 0), heps.back().second ^ 0xFFFF00); heps.emplace_back(heps.back().first * get_adj(3, 0), heps.back().second ^ 0xFFFF00);
} break;
if(magmashape == 5) { case 5:
for(int a=0; a<6; a++) { for(int a=0; a<6; a++) {
heps.emplace_back(heps.back().first * get_adj(3, 0), heps.back().second ^ 0xFFFF00); heps.emplace_back(heps.back().first * get_adj(3, 0), heps.back().second ^ 0xFFFF00);
} }
@ -90,10 +91,9 @@ void make() {
heps.emplace_back(heps.back().first * get_adj(3, 6), heps.back().second ^ 0xFFFF00); heps.emplace_back(heps.back().first * get_adj(3, 6), heps.back().second ^ 0xFFFF00);
heps.emplace_back(heps.back().first * get_adj(3, 0), heps.back().second ^ 0xFFFF00); heps.emplace_back(heps.back().first * get_adj(3, 0), heps.back().second ^ 0xFFFF00);
} }
break;
} }
if(1) { if(1) {
for(int a=0; a<magmacount; a++) { for(int a=0; a<magmacount; a++) {