mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
nilrider:: vr improvements
This commit is contained in:
parent
279fe685ec
commit
381523515e
@ -163,7 +163,7 @@ void toggle_replay() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void run() {
|
void run() {
|
||||||
cmode = sm::PANNING;
|
cmode = sm::PANNING | sm::NORMAL;
|
||||||
clearMessages();
|
clearMessages();
|
||||||
dialog::init();
|
dialog::init();
|
||||||
if(view_replay && !paused) {
|
if(view_replay && !paused) {
|
||||||
@ -344,7 +344,9 @@ void settings() {
|
|||||||
dialog::add_action_push(nil_projection);
|
dialog::add_action_push(nil_projection);
|
||||||
dialog::addItem("configure keys", 'k');
|
dialog::addItem("configure keys", 'k');
|
||||||
dialog::add_action_push(multi::get_key_configurer(1, move_names, "Nilrider keys"));
|
dialog::add_action_push(multi::get_key_configurer(1, move_names, "Nilrider keys"));
|
||||||
vrhr::vr_enable_button();
|
vrhr::enable_button();
|
||||||
|
vrhr::reference_button();
|
||||||
|
|
||||||
dialog::addItem("RogueViz settings", 'r');
|
dialog::addItem("RogueViz settings", 'r');
|
||||||
dialog::add_key_action('r', [] {
|
dialog::add_key_action('r', [] {
|
||||||
pushScreen(showSettings);
|
pushScreen(showSettings);
|
||||||
|
@ -172,7 +172,7 @@ void timestamp::centerview(level *lev) {
|
|||||||
transmatrix Tb = cspin(0, 2, -slope);
|
transmatrix Tb = cspin(0, 2, -slope);
|
||||||
|
|
||||||
hyperpoint base = Ta * Tb * point31(0, 0, whrad);
|
hyperpoint base = Ta * Tb * point31(0, 0, whrad);
|
||||||
hyperpoint refpoint = rgpushxto0(where) * rgpushxto0(base) * point31(0, 0, whrad+whrad);
|
hyperpoint refpoint = rgpushxto0(where) * rgpushxto0(base) * point31(0, 0, whrad*3);
|
||||||
centerover = cwt.at; playermoved = false;
|
centerover = cwt.at; playermoved = false;
|
||||||
View = cspin(0, 2, heading_angle-90*degree) * cspin(1, 2, -90*degree) * gpushxto0(refpoint);
|
View = cspin(0, 2, heading_angle-90*degree) * cspin(1, 2, -90*degree) * gpushxto0(refpoint);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user