mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-10 15:59:53 +00:00
nilrider:: using the lps system
This commit is contained in:
parent
9e46638733
commit
bcc86e7b30
@ -579,6 +579,24 @@ bool nilrider_music(eLand& l) {
|
||||
return false;
|
||||
}
|
||||
|
||||
local_parameter_set lps_nilrider("nilrider:");
|
||||
|
||||
void default_settings() {
|
||||
lps_add(lps_nilrider, vid.cells_drawn_limit, 1);
|
||||
lps_add(lps_nilrider, (color_t&) patterns::canvasback, 0);
|
||||
lps_add(lps_nilrider, smooth_scrolling, true);
|
||||
lps_add(lps_nilrider, mapeditor::drawplayer, true);
|
||||
lps_add(lps_nilrider, backcolor, 0xC0C0FFFF);
|
||||
lps_add(lps_nilrider, logfog, 1);
|
||||
|
||||
#if CAP_VR
|
||||
lps_add(lps_nilrider, vrhr::hsm, vrhr::eHeadset::reference);
|
||||
lps_add(lps_nilrider, vrhr::eyes, vrhr::eEyes::equidistant);
|
||||
lps_add(lps_nilrider, vrhr::absolute_unit_in_meters, 6);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
void initialize() {
|
||||
load();
|
||||
nilrider_keys();
|
||||
@ -616,20 +634,11 @@ void initialize_all() {
|
||||
variation = eVariation::pure;
|
||||
nil_set_geodesic();
|
||||
enable_canvas();
|
||||
patterns::canvasback = 0;
|
||||
vid.cells_drawn_limit = 1;
|
||||
smooth_scrolling = true;
|
||||
mapeditor::drawplayer = false;
|
||||
backcolor = 0xC0C0FFFF;
|
||||
logfog = 1;
|
||||
initialize();
|
||||
poly_outline = 0xFF;
|
||||
pushScreen(pick_game);
|
||||
#if CAP_VR
|
||||
vrhr::hsm = vrhr::eHeadset::reference;
|
||||
vrhr::eyes = vrhr::eEyes::equidistant;
|
||||
vrhr::absolute_unit_in_meters = 6;
|
||||
#endif
|
||||
start_game();
|
||||
lps_enable(&lps_nilrider);
|
||||
}
|
||||
|
||||
auto celldemo = arg::add3("-unilcycle", initialize) + arg::add3("-unilplan", [] { planning_mode = true; }) + arg::add3("-viewsim", [] { view_replay = true; })
|
||||
@ -681,6 +690,8 @@ auto celldemo = arg::add3("-unilcycle", initialize) + arg::add3("-unilplan", []
|
||||
pconf.rotational_nil = 0;
|
||||
});
|
||||
|
||||
auto hook0= addHook(hooks_configfile, 300, default_settings);
|
||||
|
||||
#ifdef NILRIDER
|
||||
auto hook1=
|
||||
addHook(hooks_config, 100, [] {
|
||||
|
Loading…
Reference in New Issue
Block a user