1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-20 15:40:26 +00:00

commandline option to rotate

This commit is contained in:
Zeno Rogue 2018-09-05 15:17:24 +02:00
parent 52d188ac5e
commit a4e388019a

View File

@ -129,6 +129,12 @@ int arg::readCommon() {
else if(argis("--draw")) {
PHASE(3); drawscreen();
}
else if(argis("--rotate")) {
PHASE(3);
shift(); ld a = argf();
shift(); ld b = argf();
View = View * spin(M_PI * 2 * a / b);
}
else if(argis("--exit")) {
PHASE(3); printf("Success.\n");
exit(0);