1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

CLI command -rotate-up

This commit is contained in:
Zeno Rogue 2022-06-16 23:13:38 +02:00
parent ba99e537a3
commit 5e2ba55e46

View File

@ -256,6 +256,11 @@ int arg::readCommon() {
shift(); ld b = argf();
View = View * spin(M_PI * 2 * a / b);
}
else if(argis("-rotate-up")) {
start_game();
shiftmatrix S = ggmatrix(cwt.at->master->move(0)->c7);
View = spin(90*degree) * spintox(S.T*C0) * View;
}
else if(argis("-rotate3")) {
PHASE(3); start_game();
shift(); ld a = argf();