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

Orb of Choice: Two small disks.

This commit is contained in:
Jacob Mandelson
2022-08-27 15:51:31 -07:00
parent 46872919ba
commit af4a0c1da9
3 changed files with 11 additions and 5 deletions

View File

@@ -259,7 +259,8 @@ void geometry_information::bshape(hpcshape& sh, PPR prio) {
if(last) finishshape();
hpc.push_back(hpxy(0,0));
last = &sh;
last->s = isize(hpc), last->prio = prio;
last->s = isize(hpc);
last->prio = prio;
last->flags = 0;
last->tinf = NULL;
first = true;
@@ -606,13 +607,18 @@ void geometry_information::procedural_shapes() {
hpcpush(ddi(i, orbsize * .1) * C0);
}
bshape(shEccentricDisk, PPR::ITEM);
for(int i=0; i<=S84; i+=SD3) {
hpcpush(hpxy(sin(i*2*M_PI/S84)*orbsize*.075,
cos(i*2*M_PI/S84)*orbsize*.075 + .07));
}
bshape(shDiskSq, PPR::ITEM);
for(int i=0; i<=S84; i+=S21) {
hpcpush(ddi(i, orbsize * .15) * C0);
}
bshape(shEgg, PPR::ITEM);
RING(i)
hpcpush(hpxy(sin(i*2*M_PI/S84)*0.242 * orbsize, cos(i*2*M_PI/S84)*0.177*orbsize));