1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-03-10 15:19:43 +00:00

binary tiling in 3D works

This commit is contained in:
?
2019-02-21 18:47:32 +01:00
committed by Zeno Rogue
parent e73d2f2f22
commit 96e4ff6c9d
6 changed files with 197 additions and 9 deletions

View File

@@ -5078,7 +5078,11 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
#if CAP_QUEUE
if(error) {
queuechr(V, 1, ch, darkenedby(asciicol, darken), 2);
if(ch == '#')
binary::queuecube(V, 1, 0xFF, darkena(asciicol, 0, 0xFF));
else if(ch == '.') ;
else
queuechr(V, 1, ch, darkenedby(asciicol, darken), 2);
}
if(vid.grid) {
@@ -5100,6 +5104,7 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
if(0);
#if CAP_BT
else if(binarytiling) {
#if DIM == 2
ld yx = log(2) / 2;
ld yy = yx;
ld xx = 1 / sqrt(2)/2;
@@ -5113,6 +5118,9 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
horizontal(yy, 2*xx, xx, 4, binary::bd_up_right);
horizontal(yy, xx, -xx, 8, binary::bd_up);
horizontal(yy, -xx, -2*xx, 4, binary::bd_up_left);
#else
binary::queuecube(V, 1, 0xC0C0C080, 0);
#endif
}
#endif
else if(isWarped(c) && has_nice_dual()) {