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

2d3d:: worm graphics

This commit is contained in:
Zeno Rogue 2019-05-10 00:53:07 +02:00
parent ef4d673196
commit 7255cb4e0d
2 changed files with 15 additions and 2 deletions

View File

@ -859,6 +859,19 @@ void make_3d_models() {
disable(shTrylobiteRearLeg);
disable(shPFace);
disable(shJiangShi);
make_revolution_cut(shDragonSegment, 60, g);
make_revolution_cut(shDragonHead, 60, g);
make_revolution_cut(shDragonTail, 60, g);
make_revolution_cut(shWormSegment, 60, g);
make_revolution_cut(shSmallWormSegment, 60, g);
make_revolution_cut(shWormHead, 60, g);
make_revolution_cut(shTentHead, 60, g);
make_revolution_cut(shKrakenHead, 60, -geom3::FLOOR);
make_revolution_cut(shSeaTentacle, 60, -geom3::FLOOR);
make_revolution_cut(shDragonLegs, 60, g);
make_revolution_cut(shDragonWings, 60, g);
disable(shDragonNostril);
make_head_only();

View File

@ -2163,7 +2163,7 @@ bool drawMonster(const transmatrix& Vparam, int ct, cell *c, color_t col) {
else if(isAnyIvy(c) || isWorm(c)) {
if(isWorm(c) && DIM == 3) return false;
if(isWorm(c) && WDIM == 3) return false;
if((m == moHexSnake || m == moHexSnakeTail) && c->hitpoints == 2) {
int d = c->mondir;
@ -2180,7 +2180,7 @@ bool drawMonster(const transmatrix& Vparam, int ct, cell *c, color_t col) {
if(isDragon(c->monst) && c->stuntime == 0) col = 0xFF6000;
transmatrix Vb0 = Vb;
if(c->mondir != NODIR && DIM == 3) {
if(c->mondir != NODIR && DIM == 3 && isAnyIvy(c)) {
queueline(tC0(Vparam), Vparam * tC0(calc_relative_matrix(c->move(c->mondir), c, C0)), (col << 8) + 0xFF, 0);
}
else if(c->mondir != NODIR) {