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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user