1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-17 10:44:48 +00:00

3D:: 123 keys now switch perspectives

This commit is contained in:
? 2019-02-27 13:30:09 +01:00 committed by Zeno Rogue
parent 7a748b56f4
commit 26b5d55224
2 changed files with 10 additions and 0 deletions

View File

@ -963,6 +963,11 @@ void gmodekeys(int sym, int uni) {
vid.wallmode--;
}
}
else {
if(NUMBERKEY == '1') { vid.yshift = 0; vid.sspeed = 0; }
if(NUMBERKEY == '2') { vid.yshift = 0; vid.sspeed = -10; }
if(NUMBERKEY == '3') { vid.yshift = 2; vid.sspeed = 0; }
}
if(NUMBERKEY == '6') vid.grid = !vid.grid;
if(NUMBERKEY == '7') { vid.darkhepta = !vid.darkhepta; }
}

View File

@ -340,6 +340,11 @@ void showDisplayMode() {
dialog::addBoolItem(XLAT(sphere ? "zoomed stereographic projection" : euclid ? "zoomed in" : "big Poincaré model"), vid.alpha == 1 && vid.scale >= 1, '3');
dialog::addBoolItem(XLAT((sphere || euclid) ? "gnomonic projection" : "Klein-Beltrami model"), vid.alpha == 0, '4');
}
else {
dialog::addBoolItem(XLAT("first person perspective"), vid.yshift == 0 && vid.sspeed > -5, '1');
dialog::addBoolItem(XLAT("fixed point of view"), vid.sspeed <= -5, '2');
dialog::addBoolItem(XLAT("third person perspective"), vid.yshift > 0 && vid.sspeed > -5, '3');
}
dialog::addSelItem(XLAT("wall display mode"), XLAT(wdmodes[vid.wallmode]), '5');
if(getcstat == '5')