1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-18 03:58:04 +00:00

struct archimedean_tiling

This commit is contained in:
Zeno Rogue
2018-08-20 02:02:45 +02:00
parent 4d31e5a544
commit c54d4ec59d
10 changed files with 203 additions and 162 deletions

View File

@@ -1328,7 +1328,7 @@ transmatrix ddi(int a, ld x) { return xspinpush(a * M_PI / S42, x); }
void drawTentacle(hpcshape &h, ld rad, ld var, ld divby) {
double tlength = max(crossf, hexhexdist * gp::scale * irr::scale);
if(archimedean) tlength = arcm::edgelength;
if(archimedean) tlength = arcm::current.edgelength;
int max = int(20 * pow(2, vid.linequality));
for(ld i=0; i<=max; i++)
hpcpush(ddi(S21, rad + var * sin(i * M_PI/divby)) * ddi(0, tlength * i/max) * C0);
@@ -1632,11 +1632,10 @@ void buildpolys() {
}
if(archimedean) {
triangleside = arcm::edgelength;
triangleside = xcrossf = arcm::current.edgelength;
goldbf = 1;
scalef = arcm::edgelength / hcrossf7;
scalef = xcrossf / hcrossf7;
floorrad0 = floorrad1 = triangleside * .45;
xcrossf = arcm::edgelength;
zhexf = xcrossf * .55;
}
@@ -1995,7 +1994,7 @@ void buildpolys() {
if(a47 && !nonbitrunc) spzoom6 *= .85;
if(archimedean)
shFullFloor.configure(arcm::edgelength/2, arcm::edgelength/2);
shFullFloor.configure(arcm::current.edgelength/2, arcm::current.edgelength/2);
else
shFullFloor.configure(hexvdist, rhexf);
shFloor.configure(floorrad0, floorrad1);