1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

3D models for Frogs and Pikes

This commit is contained in:
Zeno Rogue 2020-02-27 21:03:38 +01:00
parent aec3589260
commit a12bdf5d40
2 changed files with 14 additions and 1 deletions

View File

@ -969,6 +969,9 @@ void geometry_information::make_3d_models() {
shift_shape(shBullHorn, -g-(AHEAD - ABODY));
// make_revolution_cut(shBullHorn, 180, AHEAD - ABODY);
make_paw_3d(shFrogFrontFoot, shFrogFrontLeg);
make_paw_3d(shFrogRearFoot, shFrogRearLeg);
make_paw_3d(shTrylobiteFrontClaw, shTrylobiteFrontLeg);
make_paw_3d(shTrylobiteRearClaw, shTrylobiteRearLeg);
make_abody_3d(shTrylobiteBody, 0);
@ -976,6 +979,7 @@ void geometry_information::make_3d_models() {
make_revolution_cut(shTrylobiteHead, 180, AHEAD - ABODY +g);
make_revolution_cut(shShark, 180, WDIM == 2 ? -FLOOR : 0);
make_revolution_cut(shPikeBody, 180, WDIM == 2 ? -FLOOR : 0);
make_revolution_cut(shGhost, 60, GHOST + g);
@ -1007,6 +1011,8 @@ void geometry_information::make_3d_models() {
make_revolution(shBugArmor, 180, ABODY);
make_revolution_cut(shBugAntenna, 90, ABODY);
make_revolution(shFrogBody, 180, ABODY);
make_revolution_cut(shButterflyBody, 180, 0);
make_revolution_cut(shButterflyWing, 180, 0, 0.05*S);
finishshape();
@ -1036,6 +1042,10 @@ void geometry_information::make_3d_models() {
disable(shPFace);
disable(shJiangShi);
disable(shFrogFrontLeg);
disable(shFrogRearLeg);
disable(shFrogRearLeg2);
make_revolution_cut(shDragonSegment, 60, g);
make_revolution_cut(shDragonHead, 60, g);
make_revolution_cut(shDragonTail, 60, g);
@ -1157,6 +1167,9 @@ void geometry_information::make_3d_models() {
adjust_eye(shRatEye3, shRatHead, AHEAD, AHEAD, 1);
adjust_eye(shWolfEyes, shWolfHead, AHEAD, AHEAD, 1);
adjust_eye(shPikeEye, shPikeBody, 0, 0, 1);
adjust_eye(shFrogEye, shFrogBody, ABODY, AHEAD, 1);
adjust_eye(shReptileEye, shReptileHead, AHEAD, AHEAD, 1);
adjust_eye(shGadflyEye, shGadflyBody, 0, 0, 1);

View File

@ -1430,7 +1430,7 @@ EX bool drawMonsterType(eMonster m, cell *where, const transmatrix& V1, color_t
case moFrog: case moPhaser: case moVaulter: {
ShadowV(V, cgi.shFrogBody);
const transmatrix VL = mmscale(V, cgi.ALEG0);
const transmatrix VL = GDIM == 3 ? V : mmscale(V, cgi.ALEG0);
color_t xcolor = darkena(0xFF0000, 1, 0xFF);
int alpha = (m == moPhaser ? 0xC0 : 0xFF);
if(footphase) {