mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-04-21 02:03:16 +00:00
CLI -center-vertex to center on vertex; still needs i=2 to rotate the camera
This commit is contained in:
parent
f972170869
commit
a041016446
@ -303,6 +303,22 @@ int arg::readCommon() {
|
||||
shift(); rotate_view(cspin(i, j, argf()));
|
||||
playermoved = false;
|
||||
}
|
||||
else if(argis("-center-vertex")) {
|
||||
PHASE(3); shift(); int i = argi();
|
||||
shift(); int j = argi();
|
||||
shift(); int k = argi();
|
||||
start_game();
|
||||
auto fh = currentmap->get_cellshape(cwt.at).faces[j][k];
|
||||
hyperpoint h = View * fh;
|
||||
if(i == 0) {
|
||||
shift_view_to(shiftless(h));
|
||||
playermoved = false;
|
||||
}
|
||||
if(i == 1) {
|
||||
rotate_view(spintox(h));
|
||||
rotate_view(cspin90(0, 2));
|
||||
}
|
||||
}
|
||||
else if(argis("-cview")) {
|
||||
PHASE(3); start_game();
|
||||
View = Id; playermoved = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user