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

3D:: cube tiling

This commit is contained in:
?
2019-02-24 22:12:32 +01:00
committed by Zeno Rogue
parent e8fa30de4c
commit 7110be2032
13 changed files with 161 additions and 14 deletions

View File

@@ -4598,9 +4598,9 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
const int darkval[9] = {0,1,1,0,3,3,4,4,0};
int d = (asciicol & 0xF0F0F0) >> 3;
for(int a=0; a<9; a++)
for(int a=0; a<c->type; a++)
if(c->move(a) && !isWall(c->move(a))) {
if(a < 4) {
if(a < 4 && hyperbolic) {
if(celldistAlt(c) >= celldistAlt(viewctr.at->c7)) continue;
dynamicval<color_t> p (poly_outline, 0);
queuepoly(V, shBinaryWall[a], darkena(asciicol - d * darkval[a], 0, 0xFF));
@@ -5709,6 +5709,10 @@ void drawthemap() {
else if(archimedean)
arcm::draw();
#endif
#if MAXDIM == 4
else if(euclid && DIM == 3)
space::draw();
#endif
else
drawStandard();
drawWormSegments();