1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

product:: nice ivies

This commit is contained in:
Zeno Rogue 2019-08-19 10:33:07 +02:00
parent 6705e0286c
commit 872abace91
3 changed files with 15 additions and 2 deletions

View File

@ -163,7 +163,7 @@ hpcshape
shFigurine, shTreat,
shElementalShard,
// shBranch,
shIBranch, shTentacle, shTentacleX, shILeaf[2],
shIBranch, shTentacle, shTentacleX, shILeaf[3],
shMovestar,
shWolf, shYeti, shDemon, shGDemon, shEagle, shGargoyleWings, shGargoyleBody,
shFoxTail1, shFoxTail2,

View File

@ -2544,7 +2544,12 @@ bool drawMonster(const transmatrix& Vparam, int ct, cell *c, color_t col, bool m
if(mmmon) {
if(isAnyIvy(c)) {
if(GDIM == 3) {
if(prod) {
queuepoly(Vb, cgi.shILeaf[ctof(c)], darkena(col, 0, 0xFF));
for(int a=0; a<c->type-2; a++)
queuepoly(Vb * spin(a * 2 * M_PI / (c->type-2)), cgi.shILeaf[2], darkena(col, 0, 0xFF));
}
else if(GDIM == 3) {
hyperpoint V0 = tC0(Vb);
transmatrix Vs = rspintox(V0) * xpush(hdist0(V0)) * cspin(0, 2, -M_PI/2);
queuepoly(Vs, cgi.shILeaf[1], darkena(col, 0, 0xFF));

View File

@ -637,6 +637,14 @@ void geometry_information::procedural_shapes() {
}
}
bshape(shILeaf[2], PPR::ONTENTACLE);
hpcpush(xpush0(zhexf * .8));
hpcpush(cpush(2, cgi.plevel * .1) * xpush0(zhexf * .2));
hpcpush(cpush0(2, cgi.plevel * .4));
hpcpush(cpush0(2, cgi.plevel * -.4));
hpcpush(cpush(2, cgi.plevel * -.1) * xpush0(zhexf * .2));
hpcpush(xpush0(zhexf * .8));
bshape(shSlime, PPR::MONSTER_BODY);
PRING(i)
hpcpush(ddi(i, scalefactor * hcrossf7 * (0.7 + .2 * sin(i * M_PI * 2 / S84 * 9))) * C0);