1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-20 00:17:39 +00:00

improved keyboard control in orthogonal projection of the sphere

This commit is contained in:
Zeno Rogue
2018-07-23 16:07:27 +02:00
parent 3c6e3008eb
commit e601533a37
3 changed files with 5 additions and 4 deletions

View File

@@ -58,7 +58,7 @@ movedir vectodir(const hyperpoint& P) {
transmatrix U = shmup::ggmatrix(cwt.c);
hyperpoint H = sphereflip * tC0(U);
transmatrix Centered = rgpushxto0(H) * sphereflip;
transmatrix Centered = sphereflip * rgpushxto0(H);
ld binv = 99;
@@ -82,7 +82,7 @@ movedir vectodir(const hyperpoint& P) {
res.subdir = dirdist[(i+1)%cwt.c->type] < dirdist[(i+cwt.c->type-1)%cwt.c->type] ? 1 : -1;
}
}
// if(euclid) bdir = (bdir + 3) % 6;
return res;
}