1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

3d:: redone ratling head

This commit is contained in:
Zeno Rogue 2019-05-12 20:11:17 +02:00
parent de0f4d0685
commit 5d9ff8b625

View File

@ -1798,14 +1798,23 @@ bool drawMonsterType(eMonster m, cell *where, const transmatrix& V1, color_t col
ShadowV(V, shYeti); ShadowV(V, shYeti);
queuepoly(VLEG, shRatTail, darkena(col, 0, 0xFF)); queuepoly(VLEG, shRatTail, darkena(col, 0, 0xFF));
queuepoly(VBODY * VBS, shYeti, darkena(col, 1, 0xFF)); queuepoly(VBODY * VBS, shYeti, darkena(col, 1, 0xFF));
queuepoly(VHEAD, shRatHead, darkena(col, 0, 0xFF));
float t = sintick(1000, where ? where->cpdist*M_PI : 0); float t = sintick(1000, where ? where->cpdist*M_PI : 0);
int eyecol = t > 0.92 ? 0xFF0000 : 0; int eyecol = t > 0.92 ? 0xFF0000 : 0;
queuepoly(VHEAD, shWolf1, darkena(eyecol, 0, 0xFF)); if(DIM == 2) {
queuepoly(VHEAD, shWolf2, darkena(eyecol, 0, 0xFF)); queuepoly(VHEAD, shRatHead, darkena(col, 0, 0xFF));
queuepoly(VHEAD, shWolf3, darkena(0x202020, 0, 0xFF)); queuepoly(VHEAD, shWolf1, darkena(eyecol, 0, 0xFF));
queuepoly(VHEAD, shWolf2, darkena(eyecol, 0, 0xFF));
queuepoly(VHEAD, shWolf3, darkena(0x202020, 0, 0xFF));
}
else {
transmatrix V1 = V * zpush(geom3::AHEAD - zc(0.4) - zc(0.925) + geom3::HEAD) * cpush(0, scalefactor * (-0.1));
queuepoly(V1, shWolfHead, darkena(col, 0, 0xFF));
queuepoly(V1, shFamiliarEye, darkena(eyecol, 0, 0xFF));
queuepoly(V1 * Mirror, shFamiliarEye, darkena(eyecol, 0, 0xFF));
queuepoly(V1, shWolfEyes, darkena(col, 3, 0xFF));
}
if(m == moRatlingAvenger) { if(m == moRatlingAvenger) {
queuepoly(VBODY1 * VBS, shRatCape2, 0x484848FF); queuepoly(VBODY1 * VBS, shRatCape2, 0x484848FF);