mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-20 07:30:26 +00:00
commandline option to rotate
This commit is contained in:
parent
52d188ac5e
commit
a4e388019a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user