1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-25 01:44:48 +00:00

new system for debug logs

This commit is contained in:
Zeno Rogue
2025-10-19 15:47:01 +02:00
parent 94024dd5f1
commit 113e75d5e1
43 changed files with 601 additions and 447 deletions

View File

@@ -879,7 +879,7 @@ void geometry_information::make_shadow(hpcshape& sh) {
void geometry_information::make_3d_models() {
if(GDIM == 2 || noGUI) return;
eyepos = WDIM == 2 ? 0.875 : 0.925;
DEBBI(DF_POLY, ("make_3d_models"));
DEBBI(debug_poly, ("make_3d_models"));
shcenter = tile_center();
#if CAP_GL
@@ -891,7 +891,7 @@ void geometry_information::make_3d_models() {
#endif
if(WDIM == 2 || euclid) {
DEBB(DF_POLY, ("shadows"));
DEBB(debug_poly, ("shadows"));
for(hpcshape* sh: {&shBatWings, &shBugBody, &shBullBody, &shButterflyWing, &shCatBody, &shDogBody, &shDogTorso,
&shEagle, &shFemaleBody, &shFlailMissile, &shGadflyWing, &shGargoyleWings, &shHawk, &shJiangShi, &shKnife,
&shPBody, &shPHead, &shRaiderBody, &shReptileBody, &shSkeletonBody, &shTongue, &shTrapArrow, &shTrylobite,
@@ -903,7 +903,7 @@ void geometry_information::make_3d_models() {
for(int i=0; i<8; i++) make_shadow(shAsteroid[i]);
}
DEBB(DF_POLY, ("humanoids"));
DEBB(debug_poly, ("humanoids"));
make_humanoid_3d(shPBody);
make_humanoid_3d(shYeti);
make_humanoid_3d(shFemaleBody);
@@ -918,7 +918,7 @@ void geometry_information::make_3d_models() {
// shRaiderBody = shPBody;
// shJiangShi = shPBody;
DEBB(DF_POLY, ("heads"));
DEBB(debug_poly, ("heads"));
make_head_3d(shFemaleHair);
make_head_3d(shPHead);
make_head_3d(shTurban1);
@@ -942,7 +942,7 @@ void geometry_information::make_3d_models() {
make_head_3d(shJiangShiCap2);
make_head_3d(shTerraHead);
DEBB(DF_POLY, ("armors"));
DEBB(debug_poly, ("armors"));
make_armor_3d(shKnightArmor);
make_armor_3d(shKnightCloak, 2);
make_armor_3d(shPrinceDress);
@@ -961,7 +961,7 @@ void geometry_information::make_3d_models() {
make_armor_3d(shHood, 2);
DEBB(DF_POLY, ("feet and paws"));
DEBB(debug_poly, ("feet and paws"));
make_foot_3d(shHumanFoot);
make_foot_3d(shYetiFoot);
make_skeletal(shSkeletalFoot, WDIM == 2 ? zc(0.5) + human_height/40 - FLOOR : 0);
@@ -983,7 +983,7 @@ void geometry_information::make_3d_models() {
make_paw_3d(shDogFrontPaw, shDogFrontLeg);
make_paw_3d(shDogRearPaw, shDogRearLeg);
DEBB(DF_POLY, ("revolution"));
DEBB(debug_poly, ("revolution"));
// make_abody_3d(shWolfBody, 0.01);
// make_ahead_3d(shWolfHead);
// make_ahead_3d(shFamiliarHead);
@@ -1076,7 +1076,7 @@ void geometry_information::make_3d_models() {
make_revolution_cut(shButterflyWing, 180, 0, 0.05*S);
finishshape();
DEBB(DF_POLY, ("animatebirds"));
DEBB(debug_poly, ("animatebirds"));
animate_bird(shEagle, shAnimatedEagle, 0.05*S);
animate_bird(shTinyBird, shAnimatedTinyEagle, 0.05*S/2);
@@ -1088,7 +1088,7 @@ void geometry_information::make_3d_models() {
animate_bird(shBatWings, shAnimatedBat, 0.05*S);
animate_bird(shBatBody, shAnimatedBat2, 0.05*S);
DEBB(DF_POLY, ("disablers"));
DEBB(debug_poly, ("disablers"));
disable(shWolfRearLeg);
disable(shWolfFrontLeg);
@@ -1123,7 +1123,7 @@ void geometry_information::make_3d_models() {
make_head_only();
DEBB(DF_POLY, ("balls"));
DEBB(debug_poly, ("balls"));
make_ball(shDisk, orbsize*.2, 2);
make_ball(shHeptaMarker, zhexf*.2, 1);
make_ball(shSnowball, zhexf*.1, 1);
@@ -1173,7 +1173,7 @@ void geometry_information::make_3d_models() {
clone_shape(shRose, shRoseItem);
shift_shape(shRose, FLOOR - human_height * 1/20);
DEBB(DF_POLY, ("slime"));
DEBB(debug_poly, ("slime"));
bshape(shSlime, PPR::MONSTER_BODY);
hyperpoint tip = xtangent(1);
hyperpoint atip = xtangent(-1);
@@ -1197,7 +1197,7 @@ void geometry_information::make_3d_models() {
shift_shape(shMagicSword, ABODY);
shift_shape(shMagicShovel, ABODY);
DEBB(DF_POLY, ("eyes"));
DEBB(debug_poly, ("eyes"));
adjust_eye(shSlimeEyes, shSlime, FLATEYE, 0, 2, 2);
adjust_eye(shGhostEyes, shGhost, GHOST, GHOST, 2, WDIM == 2 ? 2 : 4);
adjust_eye(shMiniEyes, shMiniGhost, GHOST, GHOST, 2, 2);