mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-25 18:24:27 +00:00
3d:: miniwalls used for weird stuff
This commit is contained in:
1 parent
c2b6600ce5
commit
0620916dd2
2 files changed
+35
-9
No files matched your search
+17
-2
@@ -1659,9 +1659,10 @@ hpcshape
|
||||
|
||||
shAsymmetric,
|
||||
|
||||
shWall3D[12],
|
||||
|
||||
shDodeca;
|
||||
|
||||
vector<hpcshape> shWall3D, shMiniWall3D;
|
||||
|
||||
#endif
|
||||
|
||||
ld tentacle_length;
|
||||
@@ -2500,6 +2501,7 @@ void buildpolys() {
|
||||
bshape(shDragonHead, PPR::ONTENTACLE, scalefactor, 242);
|
||||
|
||||
if(DIM == 3 && binarytiling) {
|
||||
shWall3D.resize(9);
|
||||
make_wall(shWall3D[0], 0,0,-1, -1,0,-1, 0,-1,-1, 2);
|
||||
make_wall(shWall3D[1], 0,0,-1, +1,0,-1, 0,-1,-1, 2);
|
||||
make_wall(shWall3D[2], 0,0,-1, -1,0,-1, 0,+1,-1, 2);
|
||||
@@ -2512,6 +2514,7 @@ void buildpolys() {
|
||||
}
|
||||
|
||||
if(DIM == 3 && euclid) {
|
||||
shWall3D.resize(6);
|
||||
for(int w=0; w<6; w++) {
|
||||
bshape(shWall3D[w], PPR::WALL);
|
||||
for(int a=0; a<=4; a++) {
|
||||
@@ -2528,6 +2531,7 @@ void buildpolys() {
|
||||
}
|
||||
|
||||
if(DIM == 3 && sphere) {
|
||||
shWall3D.resize(12);
|
||||
for(int w=0; w<12; w++) {
|
||||
bshape(shWall3D[w], PPR::WALL);
|
||||
for(int a=0; a<=5; a++)
|
||||
@@ -2535,6 +2539,17 @@ void buildpolys() {
|
||||
}
|
||||
}
|
||||
|
||||
if(DIM == 3) {
|
||||
shMiniWall3D.resize(isize(shWall3D));
|
||||
for(int i=0; i<isize(shWall3D); i++) {
|
||||
bshape(shMiniWall3D[i], PPR::WALL);
|
||||
for(int a=shWall3D[i].s; a < shWall3D[i].e; a++)
|
||||
hpcpush(mid(C0, hpc[a]));
|
||||
if(shWall3D[i].flags & POLY_TRIANGLES)
|
||||
last->flags |= POLY_TRIANGLES;
|
||||
}
|
||||
}
|
||||
|
||||
ld krsc = 1;
|
||||
if(sphere) krsc *= 1.4;
|
||||
if(S7 ==8) krsc *= 1.3;
|
||||
|
||||
Reference in new issue
Block a user